New Articles

  1. sgapiSetCustomTableValue(%%qID, %%rowname, %%value)

    This function allows you to set the value for an individual cell in a custom table question. Example The custom table has two rows and two column questions (one radio button and one textbox). In this example, we will pre-populate the ra...
  2. sgapiSubmitSurveyComplete()

    This function submits the data on the current page and records the response as complete. All data collected on previous pages will be stored for reporting. Note: this will  not  submit the current page and move to the next. To do that, use...
  3. sgapiEvaluateMergeCodes(%%code)

    This function returns the value for the given merge code. Merge codes need to be wrapped in single quotes ' ' so that they are represented as strings. Example In this function we are evaluating and returning the value from the fir...
  4. 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...
  5. 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...
  6. sgapiSubmitSurvey()

    This function submits the data from the current page and records the response as a partial. All data from previous pages will be stored for reporting. Note: this will  not  submit the current page and move to the next. To do that, use sgapiJum...
  7. 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: ...
  8. 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 ...
  9. 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 ...
  10. 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...