Solved
Show html table attributes in csv file
Dear all,
In my questionnaire, I have a table (that is written in html and programmed with javascript). This table consists of two programs (two columns) which feature randomly appearing attributes. The respondent has then to choose which program she likes better. For the analysis, it is important to know which attributes each respondent saw. Therefore it would be great if this would be shown in the csv file. Otherwise I would have to do it by hand I guess and that would take forever. Does anyone have an idea how I can program that this attributes are also shown in the csv file? Since the table is not a real question it does not appear in the csv file. Maybe I would have to assign numbers to each attribute but I am also unsure on how to do that.
I would really appreciate your help! Thank you and cheers!
Franzi
Best answer by TomG
Create embedded variables program1 and program2 in your survey flow. The in your JS that picks random values, update the value of the embedded values:
```
Qualtrics.SurveyEngine.setEmbeddedData("program1", randVal1);
Qualtrics.SurveyEngine.setEmbeddedData("program2", randVal2);
```
You will then have columns in your csv labeled program1 and program2 with the values for each respondent.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
