Updated Articles

  1. sgapiQuestionsAnsweredOnPage(%%pageID,%%options)

    This function returns a count of answered questions on a given page. Use %%options to specify question type. %%page should be the page sku/ID (not the page number). Possible Values for %%options* RANK (Evaluates Drag & Drop and Table Rank q...
  2. sgapiReferrer()

    This function returns the URL of the webpage that linked to the survey for the given respondent. Example In the below example survey we output the Referrer to the page which is this tutorial! Check it out in an Example Survey %%output .= sgap...
  3. sgapiListAdd(%%surveyID, %%item)

    This function posts a response to the given survey using the array of items. This is equivalent to creating a SurveyResponse object via the RestAPI. To learn more visit the SurveyResponse API Object documentation. Example The below example scri...
  4. Sum a Column from a Custom Table

    Ever needed to sum the input to a textbox column on a Custom Table?* This script is increadibly easy to add to your survey. The output is displayed to the respondent below the Custom Table. Check it out in an example survey ! Put the script to...
  5. Email Respondent a Certificate

    Need to create and email a personalized certificate to a respondent? No problem! After creating your own certificate image, upload the image to your SurveyGizmo file library, copy this script and paste it into a custom script action, modify the hi...
  6. Custom Scripting with Question Aliases

    Did you know that you can use the question Alias in place of question ID almost universally in scripting and merge codes? Why aliases are much better to use in scripts You can use aliases in your script that mean something.  Your scripts can be ...
  7. 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...
  8. 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...
  9. Change Please Select In Individual Dropdowns

    Did you know you can customize the default Please Select text used in Dropdown Menus , Dropdown Menu Lists , Dropdown Menu Grids , and Cascading Dropdown Menu question types? You can also translate this text for multi-language surveys. Here's...
  10. sgapiSetValue(%%questionID,%%value)

    This function populates the response value of the given question.  For hidden value, textbox, essay, radio button, drop-down menu, slider and image choice %%value is defined as a "string." For checkbox and Drag & Drop %%value must be specified as ...