Hello,
I have a survey where a respondent is to pick from a list of options in a multiple-choice dropdown list. I have JavaScript behind this question that sets some embedded data fields to various values based on the selection. The JavaScript is in the .addOnUnload area. Basically, it's a variable list, plus the code to set the embedded data:
Qualtrics.SurveyEngine.setEmbeddedData("ApproverEmail", list[jQuery("#"+this.questionId+" select").val()]);
That's done a few times for different data fields.
This is all working quite well most of the time, but sometimes the embedded data fields are not set even though the respondent finishes the survey. I do have Force Response on the question. Qualtrics Support is not aware of any issues with JS on questions and recommended that I ask here. Is there something obvious I have done wrong? Is the JavaScript in the right place?
Best answer by SurajK
View original