Link to Pop Up Chat Widget
We switched back to Chat from Messaging. We used a 'Click Here' link in articles that would pop-up the messaging widget so customers would use it. It used this
javascript:zE('messenger', open');
I want to do the same thing, but with Chat, I found this code snippet.
zE('webWidget', 'show')
But I can't get it to work and not sure what I am missing. The idea is for the Article to have embedded links to pop up chat if the customer clicks it.
-
Hi Michael,
I think the implementation may be failing due to your usage of zE.show and zE.hide on the same JS. I've seen a few workarounds using zE.show on demand and then zE.hide to call the widget out (or the close button).
Have you tested this implementation below:
<a href="javascript:void(0);" id="showWidget" onclick="zE(function() {zE.show();});">Your text here</a>
For reference, please see this article:
https://support.zendesk.com/hc/en-us/articles/115008467568-How-to-show-the-Web-Widget-On-Click
Hope this helps, Thank you!
-
I was able to get it to work with
javascript:zE('webWidget', open');
Please sign in to leave a comment.
2 Comments