JavaScript for Controling the Survey Taker Experience

Articles

Disable Right-Click In A Survey
There might be an instance where you want to disable the right-click functionality in a survey. If so, here's a quick piece of JavaScript you can use! Please note that respondents could still use keyboard shortcuts or menu options, this will onl...
Disable The Enter Key In Your Survey
When you have survey pages with open text fields, it's possible for a survey respondent to submit the page by accidentally pressing the Enter key before completing their response. With this bit of code, you can ensure that won't happen! Pla...
Target a Specific Page With The Back Button
In support we get asked if we can have the back button target a specific page. Though this is not a built-in feature, we do have a script for that! In our survey below if you click the back button you will be sent to the Thank You Page.  Check...
Change Text of a Button on a Specific Page
While we have a built-in feature to change the text of the Back, Next, and Submit buttons for the Back and Next buttons you may not wish to change the text on every page. You can change the text of a Next and Back buttons on a per-page basis with ...
Change Header for Different URL Variables
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...
Making A Read Only Field
Many users like to use our default answer feature to pre-populate their survey. Often they wish to make this field appear as read only so that the respondent cannot change the answer. While this is not a built-in feature, we do have some easy-to-u...
Make An Image Appear For A Specified Amount of Time
We do not have a built-in feature for making an image disappear after a certain amount of time. This JavaScript will allow you to only show an image for a certain amount of time.  Check it out in an example survey ! OR Add a survey with t...
Remove Back Button on One Page
This JavaScript will hide the back button on that page that it has been placed on. In the example survey below the back button is hidden on the third page.  Check it out in a survey:  http://www.surveygizmo.com/s3/2037880/Remove...
Prevent Respondents from Selecting Text
In some circumstances, users do not want their respondents to be able to select text. This tutorial provides some JavaScript to help prevent that. Check it out in an example survey ! OR Add a survey with the setup to your account! Setup On ...
Sort Your Answer Options Alphabetically
If you have a need to alphabetize your answer options, say, for instance, you have a list of states or countries we have a handy feature that allows you to set your answer options to alphabetize . This works to alphabetize answer options in Radio B...
Show a Random Set of Text/Instruction Fields
You may have noticed that when setting up your survey page to randomly show a set of questions , text/instruction fields are not included! But of course, there's always a way to hack it with some JavaScript, so here we go! Check it out in an ...