Execute shortcode on click

Hi there,
I want to execute a shortcode when click on an icon, a block, or something else.
Is there a possibility via “Interaction>Click” of Cwicly to do that?
If not, is there another solution?
Thank’s for help.

Hi @weedor,

No this won’t be possible natively, but is a great suggestion.
You can use the Interaction → Click → Custom Function and then make an API call to execute the shortcode.

1 Like

I think this would be super.
For hours I googled to reach something but didn’t find anything really usefull.

Do you have sample of this kind of custom function and API?