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. 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 ...
  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. 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 . ...
  7. 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 . ...
  8. 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: ...
  9. 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...
  10. 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 . ...