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 %%val...
  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 star...
  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 ...
  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 t...
  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 ca...
  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 t...
  9. 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 Divid...
  10. Getting Started with Custom Scripting

    To add a custom script action to your survey, click the Action button at the bottom of any page in your survey. Give your action a name. It's a good idea to describe what the action is doing in the name, for example, "Disable ...