Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Disconnect and pop up survey if user close the tab of chat landing page

edited May 13, 2020 11:38AM in Communication Channels

Summary

Disconnect and pop up survey if user close the tab of chat landing page

Content

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!