Hi all,
I'm trying to set an embedded data in the Qualtrics.SurveyEngine.addOnPageSubmit function, but it doesn't work (no error message, only that the embedded data doesn't get the assigned value)
This is the code
Qualtrics.SurveyEngine.addOnPageSubmit(function()
{
var q2= this.getChoiceAnswerValue();
Qualtrics.SurveyEngine.setEmbeddedData("Player1Tokens",q2);
alert('You gave Player 1 '+ q2 + ' tokens');
alert('They have now ' + "${e://Field/Player1Tokens}" + ' tokens');
});
(From the alert I know that q2 gets the right value; still, Player1Tokens doesn't get the q2 value)
FYI - the Player1Tokens embedded data is initiated in the survey flow before any block is displayed to users
Question
Any idea why Qualtrics.SurveyEngine.setEmbeddedData doesn't work?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
