Skip to main content

Hi, is there a way to have the widget automatically hidden on close? I’ve hidden it on pageload, but on our website we want it to only pop out if a button is clicked, and after that if it’s closed then the button still remains showing on the page. I’ve tried adding event listeners to the close button and modifying the `close` function to no avail.

Hi @driftooor,

 

Greetings from Freshworks community. You can use our Widget API to hide the widget . Please refer https://developers.freshdesk.com/widget-api/#:~:text=EXPAND%20%E2%86%93-,Hide,-the%20widget

 

You can also explore Show/Hide widget https://developers.freshdesk.com/widget-api/#close:~:text=SHOW%20THE%20WIDGET-,Show,-the%20widget and can use something similar in code based on your requirement.

 


Reply