Introduction
JavaScript lets you add and extend functionality built into Discover. Custom JavaScript is available to users with active subscriptions.
To add JavaScript, navigate to the Settings tab and open the Custom JavaScript section.
Numerous online resources are available to help you learn JavaScript and implement changes to your surveys.
Discover's survey runtime is a single-page application — the browser loads the page once, and all subsequent navigation is handled in the browser via JavaScript. Because of this, any custom JavaScript added to your survey only executes on the initial page load unless you use Discover's built-in system hooks.
In your JavaScript, you can use defined variables and built-in scripting functions to retrieve data, responses, and other useful metadata.