Popular Articles

  1. 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...
  2. Performing Basic Math Using Scripting: Add, Subtract, Multiply, and Divide

    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...
  3. 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 ...
  4. 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 . ...
  5. 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")] ...
  6. 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...
  7. sgapiASort(%%array, %%flag)

    This is equivalent to the asort function in PHP. This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual...
  8. 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 . ...
  9. sgapiGetSurveyProgress()

    This function returns the percentage progress based on survey pages. Example If the above script is placed at the top of each survey page of a 6 page survey (including the Thank You page) the below percentages would be returned: ...
  10. 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 . ...