Question
Use javascript to pull part of drill down selected choices as embedded data
Hi,
I have a drill down question that I would like to pull out part of the selected choices as embed data. I tried this but it does not work:
var origin = "${q://QID3/ChoiceGroup/SelectedAnswers/1}".substring(0, 4);
var destination = "${q://QID3/ChoiceGroup/SelectedAnswers/2}".substring(0, 4);
Qualtrics.SurveyEngine.setEmbeddedData("origincode", origin);
Qualtrics.SurveyEngine.setEmbeddedData("destinationcode", destination);
I knew very little about Javascript and could not figure out why this does not work.
Thank you very much.
Huong
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
