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. 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. Dropdown Menu List: Change Please Select in individual dropdowns

    While Alchemer has the ability to translate or change the "Please Select" for all dropdown menus in your survey we do not have the ability to change that message per individual dropdown. Never fear! Fortunately, we can solve this with JavaScript. ...
  3. Survey Header Image: Change image via a URL variable

    This JavaScript will allow you to change your survey's header image via a URL Variable. This can come in handy if you'd like to show different target audiences different images. In this example, we changed the header to be a different color logo for...
  4. Randomization: Maintain random order across questions

    This JavaScript will allow you to maintain randomization order for images in Image Choice questions. We'll cover how to do set this up with Image Select questions on the same page and separate pages. This script also stores the random order that w...
  5. Email respondent a certificate

    This script allows you to create a certificate to email to survey/quiz respondents.  See the script in action in an example survey ! OR Add a survey with this script and setup to your account! Estimated implementation and testing time:  30-6...
  6. Record time spent on page or survey in milliseconds

    We have a built-in feature for recording time spent on a survey page in seconds within a Hidden Value. If you wish to be more precise by recording the time spent in milliseconds you can do so with a little bit of JavaScript and Custom Scripting. ...
  7. 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...
  8. Using Continuous Sum Total later in the survey

    There isn't a built-in way to use the total of the Continuous Sum question in another question. This script will populate a hidden value with the total from a Continuous Sum so that you can use the total later on in your survey. These steps assume a...
  9. Show a Number of Randomly Selected Rows from a Grid

    As part of our core randomization options, you have the ability to randomize or shuffle column and row order in a grid question. However, there is not a built-in feature to show a random subset of the rows in your grid question. Fortunately, it's pr...
  10. Show a Number of Randomly Selected Pages from a Survey

    As part of our core randomization options, you have the ability to display x number of random questions on the page. Unfortunately, there is not a built-in way to do the same with pages in a survey. Never fear!  Fortunately, it's pretty easy to scri...