Embedded data cannot be changed if it comes from a querystring | XM Community
Skip to main content

I import embedded data from a querystring   ?abc=9999.

I want to validate this embedded data.

If a value is wrong I wish to change it with JavaScript

Qualtrics.SurveyEngine.setEmbeddedData(‘abc’, 123);

This does not work, the value does not change.

If I leave abc out of the querystring it updates OK.

If you know the value is wrong then you can use survey flow branch logic and update the information in survey logic instead of using JS. Is there any specific reason to use JS?


HI, yes, I need string manipulation. I will see what survey branch logic does.  Can it change %20 to a space?  And look for certain string combinations? 


Now I understand your requirement. Can you please try to save it in new embedded data variable instead of existing one? or you can share your JS code here.


Leave a Reply