Embedded data defined in Javascript doesn't show up in responses | XM Community
Solved

Embedded data defined in Javascript doesn't show up in responses

  • 30 March 2021
  • 1 reply
  • 246 views

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.
P.S. I have already seen these two similar questions, but their answers do not solve my issue.
P.P.S. I may have posted the question in the wrong forum. I'll try posting it in the "Custom Code" forum as well--it seems to be an in-between issue.
https://www.qualtrics.com/community/discussion/5839/javascript-populated-question-data-not-appearing-in-responseshttps://www.qualtrics.com/community/discussion/15061/help-with-exporting-embedded-javascript-data

icon

Best answer by maruiu 30 March 2021, 17:44

View original

1 reply

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