-
Created On: 08/08/2020
in Alchemer Functions
This function returns the option sku for the selected answer. For multi-select questions will return an array. Example In this example, we return the option sku of a single-select question (ID 7) and a multiple-select question using sgapiGetQuest...
-
Created On: 08/08/2020
in Alchemer Functions
This function question pipes the given question based on the values specified in %%array.
Example
The below example question pipes the array from question ID 4, a checkbox question, and question pipes question ID 5 from this array of va...
-
Created On: 08/08/2020
in Alchemer 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...
-
Created On: 08/08/2020
in Alchemer 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...
-
Created On: 08/08/2020
in Alchemer Functions
This function returns an array of all the questions (of a particular type) on a particular page.
Possible values for %%type: "RANK", "RADIO", "CHECKBOX", "TEXTBOX", "MULTI_TEXTBOX", "TABLE", "GROUP", "MENU", "LIST", "CONT_SUM"
%%pageID is ...
-
Created On: 08/08/2020
in Alchemer Functions
This function hides when set to true and shows a question when set to false.
Example
In the below script we hide question ID 3 by default. Then if question 1 is "yes" it is shown by setting sgapiHideQuestion to false.
sgapiHideQu...
-
Created On: 08/08/2020
in Alchemer 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...
-
Created On: 08/08/2020
in Alchemer Functions
This function returns the title of a question.
Using the %%language parameter you can return the title in the given language. The values are the languages available in the translation menu. %%language must be title case.
Example
...
-
Created On: 08/08/2020
in Alchemer 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...
-
Created On: 08/08/2020
in Alchemer Functions
This function returns a boolean for whether or not the survey link is set to secure (https).
Example
In the below example we're running some piece of code if the link is secure.
if (sgapiIsHttps() === true{
// code
}
...