Add JavaScript
Suite
Customer Experience
Employee Experience
Strategy & Research
Product
Qualtrics
What's on this page
Warning: Custom coding features are provided as-is and may require programming knowledge to implement. Our support team does not offer assistance or consultation on custom coding. You can always try asking our community of dedicated users instead. If you’d like to know more about our custom coding services, please contact your Qualtrics Account Executive.
About Adding JavaScript
JavaScript is a programming language that enables you to accomplish more advanced functionality in your survey than would otherwise be available. For example, you can change the size of a question text box, create a custom question type, and much more.
Qtip: More information on JavaScript can be found in the Qualtrics API documentation. You can learn the basics of JavaScript through a series of simple and free tutorials at codecademy.com.
Qtip: Javascript is not included in all Qualtrics licenses. Please reach out to your Qualtrics Account Executive if you’re interested in getting access.
Accessing the JavaScript Editor
Qtip: There are several special functions from the Qualtrics code library that can be used in your custom JavaScript. Documentation on these functions is found on our JavaScript API.
Tips & Guidelines for Using JavaScript in Qualtrics
Adding Javascript in Different Project Types
You can add javascript to eligible questions in pretty much every type of project. The options described on this page are available in:
FAQs
Why is my HTML, CSS, and JavaScript not working in my free / trial account?
Why is my HTML, CSS, and JavaScript not working in my free / trial account?
As a free / trial account, custom code is not enabled and so you won’t see it in preview and active versions of the survey. To use custom code, your account will need to be upgraded.
Why doesn’t my custom Javascript work on simple layout?
Why doesn’t my custom Javascript work on simple layout?
The Simple Layout is designed to offer a better mobile experience and support for accessibility tools, so the structure of the survey page differs from that of other layouts. For more information, see our Javascript API Documentation.
That's great! Thank you for your feedback!
Thank you for your feedback!