Run custom JavaScript function

Run custom JavaScript function

You can add a button with configurable actions in 3 specific places:

  • HelpHub > Footer > Footer CTA Button

  • HelpHub > Widgets > Custom Widget > Button

  • Chatbot > Fallback Action

You have the option to select one of the predefined actions, such as opening a URL, sending an email, calling a phone number, opening a search bar, or opening supported live chat services.

Moreover, Answered.so allows you to execute custom actions on your website or web app by adding a custom JavaScript function. This feature is particularly useful for initiating actions like opening a third-party live chat service not directly supported by Answered.so.


To use this feature, simply select "Run JS Function" as the action type and provide the name of your custom JavaScript function. This function, which needs to be defined on your website or app, will be triggered when a user clicks on the action button. Within this function, you can implement any desired logic to accomplish your custom action.

Last updated on Oct 11, 2024 by Andrew