Solved

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

  • 20 October 2022
  • 2 replies
  • 336 views

Badge

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.

 
icon

Best answer by michel fernandes 11 November 2022, 00:08

View original

2 replies

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

Badge

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 :)

Reply