Embedded data defined in Javascript doesn't show up in responses | XM Community
Skip to main content

Hello,
In my survey, I define embedded data in JavaScript. I use the following type of script:
Qualtrics.SurveyEngine.setEmbeddedData("EmbeddedDataFieldName", jsVar);
However, none of the embedded data fields are visible in the responses - not event the one embedded data field which is defined in Javascript, but then used in the survey flow (I have reasons to define it there, and it is not possible to define it in the survey flow instead, given what I want it to do).
What can I do about this? Older suggestions mention ticking "Use legacy ViewResults format" when experting in csv, but this seems outdated.
https://www.qualtrics.com/community/discussion/5839/javascript-populated-question-data-not-appearing-in-responses
https://www.qualtrics.com/community/discussion/15061/help-with-exporting-embedded-javascript-data

I figured out a solution. It may not be the most efficient one, but it works.
If an embedded data field set in JavaScript is called "variable" and it's defined in Block 1, go to the Survey Flow and define a new embedded data field after Block 1, say "variable1", and set it equal to ${e://Field/variable}.


Leave a Reply