I’m trying to retrieve an embedded value that I set from using a block of web service to query from a site using javascript. But I keep running into an error.
Namely, I’m trying to use javascript to assign that value to a constant. Let’s say my embedded data field is named “__js_MyData” in the web service block. I tried doing:
- const data = “${e://Field/__js_MyData}”;
- const data = Qualtrics.SurveyEngine.getJSEmbeddedData('MyData');
But while the 1st approach gives me an error that says there is a syntax error, the 2nd approach just has the value data undefined.
I’m sure the embedded data is stored, since if I just use piped text in my questions, it displays the right content.
Has anyone tried to do this before? Is there a way to do this?