I created an embedded data variable "nbDUsers" and set it to -1 via the Survey Flow.
Then in the following block, first question, I do this:
Qualtrics.SurveyEngine.setEmbeddedData("nbDUsers", 100);
var myData = "${e://Field/nbDUsers}";
console.log("nbDUsers: "+myData);
Despite the the "setEmbeddedData", nbDUsers doesn't change the console log shows "nbDUsers: -1"
What am I doing wrong?
Embedded data not setting
You will see it in next to next question.
Anyway, just put code in onPageslSubmit function. It will reflect in next block
The setEmbeddedData does not happen on the same page, you will see the effect on the following pages.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.