Step-by-Step
Watch the Add JavaScript video to learn how to use JavaScript in your survey. JavaScript is a programming language that enables you to accomplish more advanced functionality in your survey that would not otherwise be available.
You can change the size of a question text box, add a timer to your survey, customize buttons and more. For a list of useful codes that have already been written, please visit our Coder’s Corner.
To access the JavaScript Editor:
- Select the question that you want to add JavaScript to.
- Click the Purple Gear Box to the left of the question.
- Click Add JavaScript.
- Place your JavaScript in the box, below the gold text that says /*Place Your JavaScript Below This Line*/. The opening and closing tags are already provided.
- Click Savee. A JavaScript icon appears to the left of the question.
- To preview the changes you have made, click Preview Survey in your Edit Survey tab.
- To remove your JavaScript, open the editor, click Clear, and then click Save.