Popular Articles

  1. sgapiAddContactToList(%%listID, %%email, %%fields, %%customfields)

    Our Email Lists allow account administrators to manage contacts for email lists at an account level. This function adds a new contact or updates an existing contact inside of a Contact List (as opposed to an email campaign). Parameters ...
  2. sgapiNumberFormat(%%value, %%decimals, %%dec_point, %%thousands_sep)

    This is equivalent to the number_format function in PHP. This function can be used to format number entries in your survey. Parameters %%value - The number you are formatting. %%decimals - The number of decimals (default is...
  3. sgapiImplode(%%glue, %%pieces)

    This is equivalent to the implode function in PHP. Given an array of %%pieces it will create a string delimited by the %%glue. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  4. Record Page Title of Randomized Pages

    Randomization is a very popular survey tool for eliminating bias introduced by order and/or survey fatigue. Within SurveyGizmo you can randomize questions, pages (or pages in groups) or even answer options! We have a merge code [page("pagepath")] ...
  5. sgapiStrToLower(%%string)

    This is equivalent to the strtolower function in PHP. This function returns the given string in all lower case using the PHP function strtolower. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentati...
  6. sgapiURLEncode(%%url)

    This is equivalent to the urlencode function in PHP. Given %%url this function will URL encode it making your links safe. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  7. sgapiIs_Null(%%variable)

    This is equivalent to the is_null function in PHP. Returns either TRUE or FALSE if the variable passed is null. To see an example or learn more other PHP functions and PHP programming visit PHP Documentation . ...
  8. sgapiIsArray(%%string)

    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 . ...
  9. sgapiRenderQuestionHTML(%%question)

    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...
  10. sgapiGetRespondentSessionID()

    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...