Scripting Resources

 Important Update to Custom Scripting

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

Please visit the Lua 5.1 Reference Manual for syntax and examples.

Coming Soon: Documentation of Lua functions that can be used in SurveyGizmo.

  • Any previous/existing Custom Scripts will continue to operate without issue.
  • New CustomScript Actions allow use of either the Legacy Custom Scripting (PHP-based) programming language or the LUA programming language.

While SurveyGizmo is one of the most flexible survey tools around, we get requests here and there 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.

SurveyGizmo supports two kinds of scripting in surveys: Custom Scripting and JavaScript. You can add each to your survey by adding the script to either a Custom Script or JavaScript action respectively. 

SurveyGizmo Custom Scripting - This scripting language was created for SurveyGizmo. The syntax is based on PHP and it includes an API (application program interface) for interacting with the survey. You can implement sophisticated, dynamic survey behavior using Custom Scripting. Our library of functions, including many useful PHP functions, are documented here. You can also reference a number of example custom scripts that you should be able to implement with only a few tweaks. 

JavaScript - This a programming language implemented in all browsers. It is used to create websites with sophisticated, interactive behavior. For instance, we use JavaScript for our more fun and interactive question types like the Drag & Drop Ranking question and Sliders. You can leverage JavaScript as well in your surveys though the functions are not documented here. Check out our Working Examples of JavaScript to learn more!

Scripting and Other Out-of-the-Box Customizations

We’re always happy to help you debug any documented script that is used as is. That said, we do not have the resources to write scripts on demand or to debug a customized script.

If you have customization ideas that you haven't figured out how to tackle, we're happy to be a sounding board for SurveyGizmo features and functionality ideas that might meet your customization. Beyond this, you might want to consult with someone on our Programming Services Team; these folks might have the scripting chops to help you to achieve what you are looking for!


Custom Scripting is available to the Market Research & Full Access licenses.

JavaScript is available to the Standard, Market Research, & Full Access licenses.