Record question response as embedded data? | XM Community
Skip to main content

Record question response as embedded data?

  • January 18, 2022
  • 0 replies
  • 15 views

Apologies, as I have searched and tried to follow prior responses but have been unable to resolve this.
I have defined embedded data fields for each of the loops, e.g., "data1" and want to capture the recoded responses from each loop to these fields. When I try the following code (for just Loop 1) I still get a blank.
Qualtrics.SurveyEngine.addOnload(function()
{
Qualtrics.SurveyEngine.setEmbeddedData("data1","${q://1_QID1/SelectedAnswerRecode/1}");
});
What am I doing wrong?