Tips and Tricks

Articles

What Is the Difference Between Custom Scripting and JavaScript?
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. Custom Scripting is scripting ...
Getting Started with Custom Scripting
To add a custom script action to your survey, click the Action button at the bottom of any page in your survey. Give your action a name. It's a good idea to describe what the action is doing in the name, for example, "Disable ...
Getting Started Using JavaScipt in SurveyGizmo
While SurveyGizmo is one of the most flexible survey tools out there, we get a few requests here and there for customizations that are not available. This is where JavaScript and Custom Scripting can save the day. If you have scripting chops you can...
How To Find Element IDs to Use With JavaScript
If you're using JavaScript you'll eventually need to find out where a element ID is. This tutorial will walk you through locating your element IDs.  Browsers: Each browser will have a different way to find your element ID. In this tut...
How To Find Question, Page, Option ID Numbers To Use In Custom Scripts
If you are utilizing Custom Scripts in your surveys, you will likely have a need for referencing answer options, questions, or survey pages. Each of these items have their own unique identifiers that can be referenced in your scripts. Read on to l...
Custom Scripting with Question Aliases
Did you know that you can use the question Alias in place of question ID almost universally in scripting and merge codes? Why aliases are much better to use in scripts You can use aliases in your script that mean something.  Your scripts ca...
Using CSS Classes in JavaScript
When you are writing Javascript in SurveyGizmo and need to interact with the DOM, the most straightforward option is often to use the IDs of the specific elements that you are interacting with.  For example, here is the HTML for an individual ...
Use Autofill JavaScript To Save Time Taking And Testing Surveys
Ever get tired of clicking through your survey while testing? Adding some JavaScript to a bookmark can save you a ton of time! This tutorial will walk you through adding this bookmark to your browser.  First, create a new bookmark in your brow...
Find/Replace in Code Editor
Throughout our application we use the CodeMirror text editor for editing code. Below are keyboard functions for find and replace within the CodeMirror editor in our application. Start searching Ctrl-F / Cmd-F Find next Ctrl-G / C...
User-Defined Functions
Our Custom Scripting language has a lot of built-in flexibility, but you might need to define your own functions in a script. In this example, we'll show you how to create three simple functions: Add Values Multiply Values Divid...
Custom Question Builder
Available on these licenses: Full Access Under Account > Libraries > Custom Questions we provide a framework to build your own survey question from scratch. Below we'll cover a fairly basic custom question setup. Before we get star...