Link handled by javascript

Hi

I want to configure a link to open our Zendesk widget (instead of opening a new page). For this to happen i first need to configure the link to do absolutely nothing when clicked on: css - Make a HTML link that does nothing (literally nothing) - Stack Overflow

How can I configure something like this from within prismic?

(once this is achieved, I will handle triggering the Zendesk widget via a script in Google Tag Managler)

image

Hi Espen,

Thank you for posting in the Prismic community,

If I understood correctly, I think a better approach to have a boolean field when it is true then you display the Zendesk widget.
And then in your project you check this field and display the widget.

Please let us know if you need any further help.

I need the widget to open when a specific link is clicked.

Well you can add a hidden link in your code and when the Boolean is true you display it? does that work?

If that is not the case, then can you give some more details of what you need achieve?

This issue has been closed due to inactivity.