-
Created On: 01/08/2014
in PHP Functions
This is equivalent to the is_array function in PHP. Evaluates as "true" if the variable is an array.
To see an example or learn more other PHP functions and PHP programming visit PHP Documentation .
...
-
Created On: 01/08/2014
in PHP Functions
This is equivalent to str_replace function in PHP. This function looks for %%search inside of %%subject and replaces all %%search values with %%replace.
The %%search attribute can be a single value or an array of values. If %%search is ...
-
Created On: 01/08/2014
in PHP Functions
This is equivalent to the substr function in PHP. This function returns the portion of string specified by the offset and length parameters. If start is non-negative, the returned string will start at the start position in string, counting from...
-
Created On: 01/08/2014
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...
-
Created On: 01/08/2014
in PHP Functions
This function runs both the PHP rtrim and ltrim functions on the given value and returns the results. This will remove all preceding and trailing whitespace.
Example
The below example will output the following: Text to Leftall this ...
-
Created On: 01/08/2014
in PHP Functions
This is equivalent to the chop function in PHP. This will remove the trailing whitespace.
Example
The below example will output the following: Text to Left all this whitespaceText to Right.
%% string = ' all this whitespace ...
-
Created On: 01/08/2014
in PHP Functions
This is equivalent to the trim function in PHP. This will remove all trailing and preceding whitespace.
sgapiChop and sgapiTrim are helpful for anytime you need to pull or display variables with no spaces before or after them. For example, le...
-
Created On: 01/08/2014
in PHP Functions
This is equivalent to the chop function in PHP. This will remove the trailing whitespace.
Example
The below example will output the following: Text to Left all this whitespaceText to Right.
%% string = ' all this whitespace ...
-
Created On: 01/08/2014
in SurveyGizmo 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: 01/08/2014
in SurveyGizmo Functions
This function toggles the required status of a question.
Example
In this example, if no questions were answered on page ID 1, then question ID 4 is required. In case the respondent goes back and answers a question on page ID 1, the scri...