-
Created On: 01/07/2014
in SurveyGizmo Functions
This function sets the title of a question. HTML is allowed.
The %%language parameter is a required parameter. The values are the languages available in the translation menu. Languages must be title case, for example, %%language = "Spanish".
...
-
Created On: 01/07/2014
in SurveyGizmo Functions
This function populates the response value of the given question. For hidden value, textbox, essay, radio button, drop-down menu, slider and image choice %%value is defined as a "string." For checkbox and Drag & Drop %%value must be specified as ...
-
Created On: 01/07/2014
in SurveyGizmo Functions
This function returns the number of responses (completes) that have been collected for the current survey. It takes an optional %%urlname parameter that filters by a URL variable. %%name should be in the format of: "urlvar_VariableName=Value".
...
-
Created On: 01/07/2014
in SurveyGizmo Functions
This is a realtime reporting function. You can query the total response count for a question using the %%questionID parameter. Or, by passing an option sku in %%osku, you can return the response count for a particular answer option. You can also fil...
-
Created On: 01/07/2014
in SurveyGizmo Functions
This returns the cumulative sum of all the numeric values answered for the given question ID from responses that have already been processed .
This function requires numeric reporting values. The sum that is returned will not include data from...
-
Created On: 01/07/2014
in SurveyGizmo Functions
This function returns the average answer of the answers given question ID across all completed surveys in real time.
%%query allows you to optionally specify a query string variable to filter by. Like this: "urlvar_department=support" will retu...
-
Created On: 01/07/2014
in SurveyGizmo Functions
This function returns the value of a query string variable passed into the survey where %%urlname is the name of the url variable.
Note: URL variable names are stored as all lower case in our system.
Example
This script outpu...
-
Created On: 01/07/2014
in SurveyGizmo Functions
This function returns the number of checkboxes selected for the given question.
Example
In the below example we get the total checked checkboxes and output it to the page.
Check it out in an Example Survey
%%output .= sgap...
-
Created On: 01/07/2014
in SurveyGizmo Functions
This function returns a count of answered questions on a given page. Use %%options to specify question type. %%page should be the page sku/ID (not the page number). Possible Values for %%options* RANK (Evaluates Drag & Drop and Table Rank q...
-
Created On: 01/07/2014
in SurveyGizmo Functions
This function returns Boolean true if the given question has been answered. Examples In this example, we return whether question ID 2 is answered. %%output .= sgapiIsAnswered(2) Output would be 1 if answered and null if unanswere...