New Articles

  1. Update Hidden Values if Answers Are Changed

    By default, hidden values do not update when respondents go backwards in a survey and change their answers. One way to solve this problem is to remove the Back button on a survey, but that still doesn't ensure that they can't click Back on their bro...
  2. 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...
  3. sgapiSetQuestionRuntimeProperty(%%qID,%%property,%%value)

    This function sets the specified runtime property for the given question. Possible Properties Values Required true/false Soft-Required true/false Disabled tr...
  4. sgapiGetQuestionRuntimeProperty(%%questionID,%%property)

    This question returns the specified runtime property for the given question ID. Possible Properties Return Values Hidden boolean Required boolean Soft-Required ...
  5. sgapiBase64Decode(%%data)

    This is equivalent to the base64_decode function in PHP. It decodes base64 encoded %%data. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  6. sgapiBase64Encode(%%data)

    This is equivalent to the base64_encode function in PHP. It encodes %%data with base64. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  7. sgapiMDecrypt

    Warning! We highly discourage use of this feature going forward as this has been deprecated in PHP. You will not be able to decrypt data encrypted through this method in the future.  Learn more. This is equivalent to mdecrypt_generic in PHP. ...
  8. sgapiMCrypt

    Warning! We highly discourage use of this feature going forward as this has been deprecated in PHP. Learn more. This is equivalent to mcrypt_generic in PHP. This function encrypts data. The following parameters are supported in the sgapiMCr...
  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. sgapiPreg_Replace(%%pattern, %%replacement, %%subject, %%limit)

    This is equivalent to the preg_replace function in PHP. Searches %%subject for matches to %%pattern and replaces them with %%replacement. The optional %%limit parameter defaults to -1 (no limit). To see an example or learn more other PHP ...