Skip to main content
Solved

Automatically hide widget on close?

  • December 19, 2023
  • 1 reply
  • 70 views

driftooor
Apprentice

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.

Best answer by Yusuf Ahmed

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.

 

View original
Did this topic help you find an answer to your question?

1 reply

Yusuf Ahmed
Community Manager
Forum|alt.badge.img+7
  • Community Manager
  • 123 replies
  • Answer
  • October 17, 2024

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