Popular Articles

  1. sgapiGetValue(%%questionID)

    This function returns the value (reporting value) of an answered question (or null, if not answered). For single answer questions, a single value is returned. Multi-answer questions return an array. Grid and custom group questions return a multidime...
  2. 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 ...
  3. Custom Question Builder

    Available on these licenses: Full Access Under Account > Libraries > Custom Questions we provide a framework to build your own survey question from scratch. Below we'll cover a fairly basic custom question setup. Before we get started, you s...
  4. What Is the Difference Between Custom Scripting and JavaScript?

    SurveyGizmo supports two kinds of scripting in surveys: Custom Scripting and JavaScript.  You can add each to your survey by adding the script to either a Custom Script or JavaScript action respectively. Custom Scripting is scripting langu...
  5. 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 ...
  6. 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...
  7. 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 ...
  8. 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...
  9. How To Find Element IDs to Use With JavaScript

    If you're using JavaScript you'll eventually need to find out where a element ID is. This tutorial will walk you through locating your element IDs.  Browsers: Each browser will have a different way to find your element ID. In this tutorial...
  10. User-Defined Functions

    Our Custom Scripting language has a lot of built-in flexibility, but you might need to define your own functions in a script. In this example, we'll show you how to create three simple functions: Add Values Multiply Values Divide Va...