New Articles

  1. sgapiResponseReset()

    This function clears all data from the current response. Example This function can be used to clear the current response (using sgapiResponseReset) and begin again (using sgapiJumpToPage). Check it out in an Example Survey ...
  2. sgapiGetQuestionProperty(%%questionID, %%property)

    This function returns the given property to the given question. Possible Properties Return Values exclude_number boolean labels_right boolean orientation VER...
  3. Age Verification by Birth Date

    This script will perform age verification based on the date of birth entered in an open text field. The qualifying age can be set in the script (18 years old, 21 years old, etc.) and if the user is not old enough, they will be disqualified. If they ...
  4. Disqualify Based on Previously Collected Data

    Looking for a way to disqualify a respondent based on an email address or customer ID# that has already been entered in your survey? Not a problem! This script will check your survey's database for a particular question to see if the same data has b...
  5. API Functions

    These functions allow you to make some common API calls to the SurveyResponse object. sgapiList - This function returns the list of responses for the given survey. This is equivalent to a get list on the SurveyResponse object via the Re...
  6. sgapiGetQuestionOptionSelected(%%questionID)

    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...
  7. sgapiArray_Rand(%%array,%%number)

    This function is the equivalent of the array_rand function in PHP. Picks one or more random entries out of an array, and returns the key (or keys) of the random entries. %%arr = the defined array. %%number = the number of returned array ...
  8. PHP Functions

    We've included many common PHP functions into our scripting language to allow you to achieve the functionality you desire. To learn more about PHP functions and programming, visit PHP Documentation . ...
  9. PDF Functions

    The PDF functions allow you to build a PDF within a response to be sent via the sgapiEmailSend function. PHP PDF Creation - Use these functions to dynamically create a PDF document using PHP. PDFs can be output and attached to an email ...
  10. Email Campaigns & Actions

    These functions manage your email contact lists, create email content and trigger send email actions. sgapAddContactToInvite - This function adds the given contact to the given invite. sgapiRemoveContactFromInvite - This function...