webWidget.activate | Community
Skip to main content

webWidget.activate

  • September 26, 2020
  • 3 replies
  • 0 views

All of a sudden it seems like a function has gone away.

 

vendors~web_widget.a1b1c2e981f18de37c88.chunk.js:58 Error:

Method webWidget.activate does not exist

 

    zE('webWidget', 'activate', { hideOnClose: true } );

doesn't work

    zE.activate({hideOnClose: true});

doesn't work

 

Was working and then suddenly isn't.  Someone else is controlling the account I'm just a developer integrating the webwidget into the website.  How come activate function has disappeared?

 

3 replies

  • October 5, 2020

Hey @TK

I'm not sure I understand what you're trying to do, but what I think you're trying to is to hide the widget when it is being closed by the end-user?

If this is the case, the following snippet work - it requires jQuery though.

$( document ).ready(function() {

zE('webWidget:on', 'close', function() {
zE('webWidget', 'hide');
});
});

 


  • Author
  • October 5, 2020

Thanks... Some internal setting on the widget was changed, which has been changed back and everything is working fine again now.  The activate function was just in use when the problem was hit...  problem solved and active is working fine as usual.


  • October 6, 2020

Hey @TK

Glad you guys got it working!