Announcing the new and improved advanced Web Widget JavaScript API

Have more questions? Submit a request

8 Comments

  • Dan Ross

    Are the old widget APIs being deprecated? If so, is there a targeted date for this?

    0
  • Daniel Aron

    Hi Dan, the old widget APIs will be deprecated eventually but there is no target date at this stage. We will be tracking the declining usage of the old APIs over time and when we decide to deprecate them we will follow typical breaking-change, end-of-life procedures, including providing plenty of advanced notice for anyone still using them.

    0
  • HDM Contact
    zE('webWidget', 'identify', details)

    Doesn't work as it described here and in the docs. It works exactly as `prefill` and just populate a pre-chat form.

    1
  • Daniel Aron

    Thanks, identify does currently prefill the prechat form because once the user is created in Support, the Chat backend relays that information to the Web Widget in real-time. We will update the docs to clarify this behavior. 

    0
  • Stuart Pearce

    Hi Dan

    zE('webWidget', 'open') will not launch the web widget from hidden.

    zE.Activate does ?

    we want to hide the launcher (using hide) then just activate the widget from a button click

    It would be good to support this functionality in the new style?

     

    0
  • Daniel Aron

    Hi Stuart, with the new API structure they are single purpose. So after you've hidden the launcher, on button click you can use show to show the launcher and open to open the widget also if you like.

    0
  • Bernardo Leigh

    Hi Dan - Hope you are doing well.  I have a question in regards to the listeners. Is there a listener for the `Done` button that appears after a ticket is submitted? I noticed that the callback that is attached to zE('webWidget:on', 'close', CB) fired, when I closed the widget using the minus sign found on the top right; however it didn't fire when I clicked on the `Done` button after submitting a ticket. I also noticed the `Cancel` button doesn't trigger the callback. Thanks!

    0
  • Daniel Aron

    Thanks Bernardo. We're working on triggering an ‘onClose’ event when the widget is closed via both the 'Cancel' and the ‘Done’ button. I'll post here when it is deployed.

    0

Please sign in to leave a comment.

Powered by Zendesk