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.


New Articles

  1. System Usability Scale (SUS) questionnaire

    Are you looking to better understand the usability of a system? The System Usability Scale (SUS) is the most used questionnaire for measuring perceptions of usability. It is technology independent and can be used to measure the usability of hardware...
  2. 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...
  3. Cascading Dropdown: Select option when only one is present

    If you are using the Cascading Dropdown question and one of your menus has only one option you might want to have the survey automatically select it for your respondents. While there isn't a built-in way to achieve this; we have a super-simple, co...
  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. setothervalue

    This function populates the response for other textboxes . If you wish to set the value of a question use the setvalue function. Parameters* Description Required questionID the ID of the question true reporting_value the reportin...
  6. Add two Continuous Sums into a third

    While there is no built-in functionality to populate a continuous sum question with previous continuous sum questions we have a script to accomplish this! This can come in handy if you have different totals that you want to add to make one overall t...
  7. Using SurveyGizmo Merge Codes in JavaScript

    You can use SurveyGizmo merge codes in JavaScript actions in your survey. Our servers will replace the merge code with the corresponding value when the page is rendered. When the JavaScript code executes on the client side, the merge code will have ...
  8. 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...
  9. Working Examples of Custom Scripting

    These working examples of custom scripting cover some of our most frequently-requested survey customizations. These examples are built to plug and play. Template scripts like these are great for getting started with scripting.
  10. Working Examples of JavaScript

    Get started with JavaScript! Learn how to script some of our most frequently requested survey customizations. These examples are built to plug and play. Template scripts like these are great for getting started with JavaScript.