Solved
How to make a global variable in Qualtrics
Hi,
I've made a lot of custom code using javascript across many questions in my Qualtrics survey. Each of the questions uses the same variable and since the variable is an extremely long list of names and for the sake of neatness I want to make a global variable such that custom code in each question will call upon this variable without having to input into each questions custom code section.
These questions cannot be combined to a set of multiple form fields. They must all have separate question IDs.
Any help will be greatly appreciated!
Best answer by TomG
Add a function to the Look & Feel header that sets and returns the variable. Call the function from the JS in your questions.
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.