Hello!
I have been trying to randomize the questions that participants are shown in my survey (conjoint study). I have been successful in doing so, but I also need to see what questions my participants are shown when analyzing data. I am using this link as a guide: https://github.com/leeper/conjoint-example
I have used the following JS code to embed the data in responses:
// Create list of variables to use when setting attributes
a_list = ["a1","a2","a3","a4","a5"];
b_list = ["b1","b2","b3","b4","b5"];
// set html values in conjoint table
for(i=0;i<5;i++){
document.getElementById(a_list[i]).innerHTML = traits_a[i];
document.getElementById(b_list[i]).innerHTML = traits_b[i];
}
// store values as embedded data fields
Qualtrics.SurveyEngine.setEmbeddedData('traits1a', traits_a.join("|"));
Qualtrics.SurveyEngine.setEmbeddedData('traits1b', traits_b.join("|"));
This is in accordance with the link above. Unfortunately, I am unsure how to access this data when downloading my dataset. Any information would be appreciated!
Solved
Unable to access embedded data included in Javascript when downloading dataset (bit of an amateur!)
Best answer by ahmedA
This is a surprise that everyone comes across after using JS for a bit. Add a variable with the same name in the Survey Flow and you'll find it present in the results.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
