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.


Popular Articles

  1. Table Manipulation

    The Lua library provides generic functions for table manipulation. The below list of table manipulation functions are available to use in Alchemer Custom Scripting. Reference the corresponding LUA function in the LUA Documentation:   https://www.lua...
  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. 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.
  4. Show/Hide Logic based on MaxDiff

    In this example, we cover a script to conditionally show text elements based on the attributes that are rated highest in a MaxDiff question. See this script in action in an example survey . OR Add a survey with this script and setup to your ac...
  5. Survey Customization Scripts

    These survey customization scripts cover commonly requested functionality that is not available out of the box.
  6. 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...
  7. 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...
  8. Disqualification Scripts

    These disqualification scripts cover commonly requested disqualification functionality that is not available with our built-in disqualification feature.
  9. Miscellaneous Functions

    This mixed bag of functions allows for things like checking whether a question is answered (see isanswered ) or submitting the survey response (see submitsurvey and submitsurveycomplete ). ...
  10. Get Started with Custom Scripting

    There are five categories of custom scripting functions available:  Survey Getter Functions - Survey getter functions allow you to fetch various values throughout the survey. Survey Setter Functions - Survey setter functions allow you to s...