Add and view embedded data | XM Community
Skip to main content
I am trying to add an embedded data to my survey. Whenever the user answers a certain question, this new embedded data field gets populated. I am coding it liked this: Qualtrics.SurveyEngine.addOnload(function()

{....

this.addEmbeddedData("Profile", "High");

}

so a new data field "Profile" is created with the string "High" (for a particular questions). When I export the data to view it on SPSS, I am unable to view this new data field anywhere. Am I adding and viewing this new field incorrectly?
I'm not familiar with doing this via API, but is there a reason why you don't want to just set it in your survey flow?



You can use branching logic after the question to create and populate the embedded data field based on the answered question.
Hello @R_I ,



I agree with @jpardicusick suggestion but still if you want to set the embedded data using JS then use below code:



Qualtrics.SurveyEngine.setEmbeddedData("Profile", "High");



Note: Make sure you have an embedded data -"Profile" declared in the survey flow before the question where you are using the above JS.

Leave a Reply