-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function returns the session ID for the current response. Session ID is a unique, randomly generated string used to identify the respondent's survey session.
Example
%%session = sgapiGetRespondentSessionID();
%%output .= %%ses...
-
Last Updated: 06/26/2017
in PHP Functions
This is equivalent to the shuffle function in PHP. Given an array this function will randomly reorder the array. It will evaluate as true on success and false on failure.
To see an example or learn more other PHP functions and PHP program...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function renders the entire question including all the HTML associated with both the question title, description and answer options.
Example
In the below example we output the results of sgapiRenderQuestionHTML for the below questi...
-
Last Updated: 06/26/2017
in PHP Functions
This is equivalent to the strpos function in PHP. This function returns the numeric position of the first occurrence of %%needle string in the %%haystack string. If the optional %%offset parameter is specified, the search will start this number of...
-
Do you need to perform basic math within a response? You can do so using our custom scripting. Because our scripting language is based on PHP any of the operators that are available in PHP are available in our scripting language, and thus, in our su...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function sets the number of the first question of the page (default is 1). You can use this script on each page to restart the question numbering on each page.
Example
The below example script can be placed on the beginning of each...
-
Last Updated: 06/26/2017
in PHP Functions
This is equivalent to the iconv function in PHP. Performs a character set conversion on %%string from %%in_charset to %%out_charset.
To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation .
...
-
Last Updated: 06/26/2017
in SurveyGizmo Functions
This function removes an multiple choice option (by reporting value as %%reportingvalue). For table questions it hides the column associated with that reporting value for all rows. This will not reset if back button is used. If you'd like to have th...
-
Last Updated: 06/26/2017
in PHP Functions
This is equivalent to the min function in PHP. It is used to find the lowest value.
Example
%%minvalue = array(85,66,22,99);
%%output .= sgapiPrint_R(sgapiMin(%%minvalue));
// will output 22
To see an example or learn more...
-
Last Updated: 03/05/2015
These functions allow you to make some common API calls to the SurveyResponse object.
sgapiList - This function returns the list of responses for the given survey. This is equivalent to a get list on the SurveyResponse object via the Re...