Skip to main content
Solved

How can I hide fcWidget by default and display it later?

  • October 20, 2022
  • 2 replies
  • 477 views

Forum|alt.badge.img

Hi everyone:

 

Good to be here, as the title, I try not to display widget after initializing with the following setting:

window.fcWidgetMessengerConfig = {
          config: {
            headerProperty: {
                hideChatButton: true,
            },
          },
  };

 

It works fine, but later when I try to show the widget with ‘window.fcWidget.show()’, nothing happens,

Is it possible to achieve this behavior?

Thanks in advance.

 

Best answer by michel fernandes

Had the same problem, not sure if it is supposed to be this way.

I achieved this by using ‘window.fcWidget.setConfig()’. Then you can change the property ‘hideChatButton’ to control the visibility, instead of show() and hide() functions

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

2 replies

michel fernandes
Community Debut

Had the same problem, not sure if it is supposed to be this way.

I achieved this by using ‘window.fcWidget.setConfig()’. Then you can change the property ‘hideChatButton’ to control the visibility, instead of show() and hide() functions


Forum|alt.badge.img
michel fernandes wrote:

Had the same problem, not sure if it is supposed to be this way.

I achieved this by using ‘window.fcWidget.setConfig()’. Then you can change the property ‘hideChatButton’ to control the visibility, instead of show() and hide() functions

It works!! Thank you so much :)