Having Qualtrics record outputs of custom code as a reponse | XM Community
Skip to main content
Question

Having Qualtrics record outputs of custom code as a reponse

  • February 5, 2021
  • 1 reply
  • 37 views

GioUB

Hi everyone,
As one of the questions in my survey, I have coded a 'game' for survey participants to play. The results of their play are returned as an array in the code. I am wondering if it is possible for Qualtrics to record this array as a question response data.
Does anyone have experience doing this or know how to do it?
It would be incredibly helpful. Many thanks.

1 reply

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • February 5, 2021

flatten your data into a string and then store it as an embedded variable using

Qualtrics.SurveyEngine.setEmbeddedData("embedded variable name", data variable)
.
More details here.