Popular Articles

  1. Make An Image Appear For A Specified Amount of Time

    We do not have a built-in feature for making an image disappear after a certain amount of time. This JavaScript will allow you to only show an image for a certain amount of time.  Check it out in an example survey ! OR Add a survey ...
  2. sgapiGetSurveyProperty(%%propertyname)

    This function returns the given property for the current survey. Possible Properties Return Values survey_interaction_desktop INTERACTION_STANDARD survey_interaction_mobile INTERA...
  3. Prevent Respondents from Selecting Text

    In some circumstances, users do not want their respondents to be able to select text. This tutorial provides some JavaScript to help prevent that. Check it out in an example survey ! OR Add a survey with the setup to your account! Setup On ...
  4. sgapiArrayPush(%%array1,%%array2)

    This is equivalent to the array_push function in PHP. Push one or more elements onto the end of array. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  5. Change Please Select in Cascading Dropdown

    This feature is now available via the Text & Translations interface under the Messages tab. This JavaScript will allow you to change "Please Select" to the text you prefer on a Cascading Dropdown question. Check it out in an...
  6. sgapiSetPageProperty(%%pageid,%%propertyname,%%value)

    This function allows you to set a specific property for a page with a given page ID for the active response session. Possible Properties Return Values status_change normal, partial, complete, disqualif...
  7. sgapiArraySlice(%%array,%%offset,%%length,%%preserve_keys)

    This is equivalent to the array_slice function in PHP. Returns the sequence of elements from the array as specified by the offset and length parameters. To see an example or learn more other PHP functions and PHP programming, visit PHP Documen...
  8. sgapiArrayCombine(%%keys array,%%values array)

    This is equivalent to the array_combine function in PHP. Creates an array by using one array for keys and another for its values. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  9. Making A Read Only Field

    Many users like to use our default answer feature to pre-populate their survey. Often they wish to make this field appear as read only so that the respondent cannot change the answer. While this is not a built-in feature, we do have some easy-to-u...
  10. Set Max Answers to Checkbox Question Dynamically Based on Previous Question Answer

    Often survey builders wish to set the maximum answers a respondent can provide to a checkbox question dynamically based on the value entered in a previous Textbox question. You can achieve this, both for Checkbox questions on the same page and later...