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
Sadly, it doesn't work on either... I do it in the "onUnload" of the previous block and it's not update in the next block :(
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.