-
Last Updated: 06/26/2017
in SurveyGizmo Functions
Splits the given comma-separated string into an array. Example In the below example we create an array from a comma-separated list. %%string = apples, oranges, bananas, pears, grapes, papaya, kiwi;
%%output = sgapiCSVSplit(%%string); The outpu...
-
Last Updated: 06/26/2017
in PHP Functions
This is equivalent to the round function in PHP. Returns the %%number rounded to the nearest whole number by default. If the optional %%decimal is also included, it defines the number of decimal positions to include.
To see an example or ...
-
Last Updated: 06/26/2017
in PHP Functions
This is equivalent to the mt_rand function in PHP. It generates a random number (typically 9 or 10 digits long). If the optional %%min and %%max integers are specified, it will generate a number between %%min and %%max instead.
To see an...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function submits the data on the current page and records the response as complete. All data collected on previous pages will be stored for reporting.
Note: this will not submit the current page and move to the next. To do that, use...
-
Last Updated: 08/01/2018
in SurveyGizmo Functions
This function returns the URL of the webpage that linked to the survey for the given respondent. Example In the below example survey we output the Referrer to the page which is this tutorial! Check it out in an Example Survey %%output .= sgap...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function clears all data from the current response.
Example
This function can be used to clear the current response (using sgapiResponseReset) and begin again (using sgapiJumpToPage).
Check it out in an Example Survey
...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function returns an array of skus=>values for the given question-piped question.
Example
Check it out in an Example Survey
For example if we question pipe from the below question...
Into this question and output ...
-
Last Updated: 06/26/2017
in PHP Functions
This is equivalent to the max function in PHP. It is used to find the highest value.
Example
%%maxvalue = array(85,66,22,99);
%%output .= sgapiPrint_R(sgapiMax(%%maxvalue));
// will output 99
To see an example or learn mor...
-
This JavaScript will hide the back button on that page that it has been placed on. In the example survey below the back button is hidden on the third page.
Check it out in a survey:
http://www.surveygizmo.com/s3/2037880/Remove-Back-Butt...
-
Last Updated: 06/26/2017
in PHP Functions
This is equivalent to the arsort function in PHP. This function sorts an array in reverse order and maintains index association. Elements will be arranged in reverse order when this function has completed.
The %%flag parameter defaults to "S...