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. Randomization: Show a random set of Text/Instruction fields

    You may have noticed that when setting up your survey page to randomly show a set of questions , Text/Instruction fields are not included! But of course, there's always JavaScript! See the script in action in an example survey ! OR Add a surve...
  2. Randomization: Keep two options together

    When randomizing answer options customers often wish to keep to options together. That is, they wish for the options to randomly move about in the list of all answer options, however, they want them to remain together as a group. While we don't have...
  3. Comment Field: Display above the question

    By default, Comment Fields will display below the question they are added to. This script will display a comment field above a question. See this script in action in an example survey ! OR Add a survey with this script and setup to your acco...
  4. Other Textbox: Limit characters allowed

    Looking to limit the number of characters that can be entered in an Other Textbox ? While we don't have this feature built-in, it's something that can be accomplished with a little bit of custom JavaScript. See this script in action in an example...
  5. Checkboxes: Set max answers dynamically

    Often survey builders wish to set the maximum answers a respondent can provide to a checkbox question dynamically based on the value entered in a previous Textbox question. You can achieve this, both for Checkbox questions on the same page and later...
  6. Checkbox Grid and Radio Button Grid: Make Other Textbox rows required

    Other Textboxes within grid questions do not force a response if the answer the row. This JavaScript will disable and uncheck the other row's answer options unless text has been input in the Other Textbox. See the script in action in an example su...
  7. Continuous Sum: Combine sums from two Continuous Sum questions

    Would you like to add the totals to from one or more Continuous Sum question on the same page?* This script displays the sum of one or more Continuous Sum questions on the page. Note, this does not record the summed value for reference later; see o...
  8. Radio Button Grid: Swap columns and rows

    If you want to display single choice in a Radio Button Grid vertically this JavaScript will do just this but record the data in the same format by row. See the script in action in an example survey ! OR Add a survey with this script and setup ...
  9. Other Textbox: Hide until other option is selected

    In this tutorial we'll cover how to display an Other Textbox in a Radio Button or Checkbox question only after the option has been clicked.  This script is compatible with multiple Other Textboxes in the same question. See the script in acti...
  10. Radio Buttons: Disable option once selected

    While we do have a built-in feature that will hide a question once it is answered . This JavaScript will allow you to still display the question but not allow changes. It works with Radio Button questions and Radio Button Grids .   See the scri...