hi, all,
I am new to incorporate Javascript into Qualtrics and would love everyone's help. In one of my survey questions, I am using the following code to allow respondents to autocomplete their response to the question (asking the store number they work at).
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
});
Qualtrics.SurveyEngine.addOnReady(function() {
var textOptions = [
"3696",
"1233",
"4564",
"1543",
"20921",
"543",
"3569"
];
jQuery('.QR-' + this.questionId).autocomplete({source:textOptions});
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/
});
The code works. However, the suggested response (e.g. 34668) shows up on the question on the next page (see image below). Would love to know how to solve this. Thank you!
best,
CL
Question
Custom javascript/jquery autocomplete field shows up on the next page
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

