Load a new form on the same webpage

Markdown

View as Markdown

You can load a new form when a user clicks on a link or a button using the collectchat.open method. You have to pass the Form ID of the new form that has to be loaded to this method.

Here is an example:

<a href="#" onclick="collectchat.open('5ad9cbf6b17dad848274698a')">Open New Bot</a>

Note that this will open the widget instantly. If you don't wish to open the widget, and instead only want to load the launcher of the form, then you can use the method, collectchat.load.

For example:

<a href="#" onclick="collectchat.load('5ad9cbf6b17dad848274698a')">Load New Bot</a>

Was this article helpful?

Still need help?

Contact us