errormessage_Qualtrics.pdfI have a survey that passes a store code as a parameter that I capture on an embedded data called 'stid'. I use stid to populate a few questions and hide them using Javascript. Populating them will give me the name (storeid), region (storeidreg) and address of the store (storenameaddr). I also have a few other questions that I populate and hide. The first question that I populate is storeid and this is the code that I use:
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
var StoreVal = "${e://Field/stid}";
this.setChoiceValueByRecodeValue(StoreVal,true);
//Hide the question from respondent view
this.clickNextButton();
});
This is the same code that I use for storeidreg. But when I test the survey, I get the error message and it stops at storeidreg. Even though I have the error, storeidreg was populated properly so I'm thinking it has something to do with the code that hides it. Once I click Next on the storeidreg page, the rest of the questions that I hide using the same code worked.
What do you think causes it? I tried switching storeid and storeidreg and I get the same result. It always stops on the second question.
Question
Getting "Sorry, an unexpected error occurred" on the second question that I am trying to hide
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.