Lua Scripting Resources

Important Update to Custom Scripting

SurveyGizmo's CustomScript Action now supports the LUA programming language.


Legacy Custom Scripting Language Deprecation Plans 

  1. New accounts (created after October 29, 2018) will only have the option to use Lua in scripts.
  2. As of October 29, 2018 Custom Scripting Actions will default to Lua as the scripting type in the Custom Scripting Action for accounts created before this date. You will be able to switch to the Legacy Custom Scripting; though we highly encourage using Lua.
  3. In the long term, Legacy Custom Scripting Actions will be switched to read-only. Read-only scripts will continue to function; you will just be prevented from editing. The exact date on this is to be determined; we will send notifications well ahead of time.


 Go to our Legacy Scripting Documentation.

While SurveyGizmo is one of the most flexible survey tools around, we get requests for customizations that are not available out of the box. This is where JavaScript and Custom Scripting can save the day. If you have scripting chops you can use the JavaScript action or the Custom Scripting action to achieve the survey of your dreams.


Updated Articles

  1. Drag & Drop and Ranking Grid: Report on rank not row headers

    Both our Drag & Drop Ranking question and our Ranking Grid will report and export on the row headers for each question. The report data of an aggregated score and a corresponding rank for each row header/option. Some users are more interested in...
  2. Control the Survey Taker Experience

    From disabling the enter key to preventing respondents from selecting text in your survey, these JavaScript examples allow you to control the survey taker's experience.
  3. JavaScript Question Customizations

    These question customization scripts cover commonly requested functionality that is not available out of the box with survey questions. Most JavaScript question customizations change the behavior of the questions during survey taking. Whereas, Cust...
  4. Question Customization Scripts

    These question customization scripts cover commonly requested functionality that is not available out of the box with survey questions. Most Custom Scripting question customizations affect the data that is collected, e.g. transform the data for repo...
  5. Images: Make an image appear for a specified amount of time

    This JavaScript will allow you to only show an image for a certain amount of time.  See the script in action in an example survey ! OR Add a survey with this script and setup to your account. The Script First, add your image element that y...
  6. Merge Codes: Set default values when empty

    Some merge codes support a default attribute that allows you to set a default value to display when the merge code is empty.  The following merge codes support the built-in default attribute. [question("value"), id="3"]  [question("option title"...
  7. Enter Key: Disable the Enter key in your survey

    When you have survey pages with open text fields, it's possible for a survey respondent to submit the page by accidentally pressing the Enter key before completing their response. With this bit of code, you can ensure that won't happen! Place this ...
  8. Buttons: Target a specific page with the back button

    Customers frequently request the ability to have the back button target a specific page. Though this is not a built-in feature, we do have a script for that! In our survey below if you click the back button you will be sent to the Thank You Page.  ...
  9. Buttons: Remove back button on one page

    This JavaScript will hide the back button on that page that it has been placed on. In the example survey below, the back button is hidden on the third page.  See this script in action in an example survey .  OR Add a survey with this script an...
  10. Buttons: Change text of a button on a specific page

    While we have a built-in feature to change the text of the Back, Next, and Submit buttons for the Back and Next buttons you may not wish to change the text on every page. You can change the text of a Next and Back buttons on a per-page basis with ...