-
This JavaScript will perform age verification based on the date of birth entered in an open-text field. The qualifying age can be set in the script (18 years old, 21 years old, etc.) and if the user is not old enough, they will be disqualified. If t...
-
Building and sending attachments with custom content is a very common customization achieved via custom scripting. To learn how to build a PDF file with custom content see our PDF Functions .
Once you've built your custom content the are two o...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function hides an answer option by reporting value. The true/false parameter can be used to support changes in answer options when respondents use the back button.
For grid questions the answer fields in column associated with that repo...
-
As piping into answer options is not available for Textbox List questions, this script will query the answers from a source Checkbox question and filter the option list in a target Textbox List question accordingly. For this to work, the option titl...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function returns the value for the given merge code. Merge codes need to be wrapped in single quotes ' ' so that they are represented as strings.
Example
In this function we are evaluating and returning the value from the fir...
-
As part of our core randomization options you have the ability to display X number of random questions on the page. Unfortunately, there is not a built-in way to do the same with pages in a survey. Never fear! We'll cover the steps to use a pretty s...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function returns an array the piped values for the given question-piped question.
Example
In the below example we output the values of question ID 6 which is negative question piped from a question on a previous page.
Check i...
-
We have a feature that will verify two textbox questions on the same page match (Example: Verify that the respondent enters the same email address twice). This code snippet is used to check to see if the answers to any two questions in the surve...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function accepts the Question ID of a table and returns an array in the following format: [questionID] => "title"
Example
In this example we output the array of table question titles to the page.
Check it out in an Example S...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function pipes the given rows into the given Custom Table question. You can specify a static value or pull selected values from a previous question.
Example
The below example pipes the given rows in the array into the given Custom ...