Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

It is not always possible to edit a form to your liking, adding an external JavaScript file could then be helpful. If you , for example, want the feedback button to decrease in size once a visitor has clicked on the form, an external script can be usedwant to add additional functionality to a form that is not available via our interface you can add an external JavaScript file. This article will explain where and how you can do this and what the different options are.Under ‘Build’ > ‘Form’, you add an external JavaScript file.

Open the form where you want to add the external file to.

...

You can add external JavaScript files under BUILDFORMExternal files ADD FILE.

...

Click on ‘Add file’ ADD FILE and a pop-up modal will appear where you can add the file name and URL . Next, you should choose the file scope; outside form dialog, inside form dialog or both.

...

Outside form dialog only

In this case, the external script only has access to the page where the form is loaded. You could, for example, trigger or collect something based on certain information on the website.

Inside form dialog only

In this case, you can change the form with the external script, but it is not possible to collect data from the website.

Outside and inside form dialog

In this case, both outside and inside form dialog options are possibleof the location were you host the file.

...

The file name can be any name you want. The file URL should be a publicly accessible file location, so our form access the file and execute it.

...

Easy html macro
theme{"label":"solarized_dark","value":"solarized_dark"}
contentByMode{"html":"<div id=\"surveyContent\"></div>","javascript":"","css":""}