x

Add Javascript

Advanced Building

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:

  1. Select the question that you want to add JavaScript to.
  2. Click the Purple Gear Box to the left of the question.
  3. Click Add JavaScript.
  4. 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.
  5. Click Savee. A JavaScript icon appears to the left of the question.
  6. To preview the changes you have made, click Preview Survey in your Edit Survey tab.
  7. To remove your JavaScript, open the editor, click Clear, and then click Save.