JavaScript Examples
Examples of custom JavaScript functions
Survey Builder allows you to add custom JavaScript to your questions to affect the look and functionality. ** Important thing to note ** JavaScript ...
Wed, 7 Oct, 2026 at 2:55 PM
Auto-click Next (no delay): function pageReady(){ $(".main-next-button").click(); } Auto-click Next (with delay): fun...
Wed, 7 Oct, 2026 at 10:59 AM
To set the response to a single choice question, you can use the code below. Note: the answers start at index 0, so the first answer in your list wil...
Wed, 7 Oct, 2026 at 11:11 AM
To set the response inside an open text question or response, you can use the code below. Note: the answers start at index 0, so the first answer in...
Wed, 7 Oct, 2026 at 11:13 AM
To set the response to a multi choice question, you can use the code below. Note: the answers start at index 0, so the first answer in your list will be...
Wed, 7 Oct, 2026 at 11:12 AM
To set the response inside a numeric question or response, you can use the code below. Note: the answers start at index 0, so the first answer in y...
Wed, 7 Oct, 2026 at 11:15 AM
You can use JavaScript to set the numeric age in a hidden question after you have asked the Date of Birth question. This code below relies on you piping...
Wed, 7 Oct, 2026 at 11:52 AM
If you have some codes that cannot be selected together, but can be selected with other values, then you can make use of this logic check on the page. T...
Wed, 7 Oct, 2026 at 12:07 PM