Submit a ticket Agent Login
Welcome
Login  Sign up

JavaScript Examples

Examples of custom JavaScript functions

How to Insert JavaScript & Hide Questions
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
Submit The Page (Auto Click Next)
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
Set An Answer (Radio/Single Choice Question)
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
Set An Answer (Open-text Response)
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
Set An Answer (Checkbox/Multi Choice Question)
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
Set An Answer (Numeric Question)
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
Set Age from DOB Question
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
Manage Exclusive Values in a Multi Response Question
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