Disconnect and pop up survey if user close the tab of chat landing page
Summary
Disconnect and pop up survey if user close the tab of chat landing pageContent
Hi All,
I am trying to disconnect the chat and popup the related survey on closure of the tab of chat landing page from user end.
I have extended the standard widget "Chatdisconnectbutton" and subscribed to the event window.onbeforeunload and from the event handler I am able to disconnect chat by subscribing to event "evt_chathanguprequest" through parent onclick() method. But I am unable to pop the survey.
If I directly click the disconnect button, then survey is popped up as chat rule is set like "PopUp survey" if chat completed.
1