Hello everyone,
I need a code to set EmbeddedData on basis of the selected choice. This is where I want to go:
Qualtrics.SurveyEngine.addOnPageSubmit(function() {
var choice = parseInt(this.getSelectedChoices());
var status = ["now", "still"];
if (choice = 1){
status = "still";
} else {
status = "now";
}
Qualtrics.SurveyEngine.setEmbeddedData("Status", status);
I have a very complicated survey flow and cannot use branch and bound or display to incorporate the logic.
Best
Userlevel 1
var choice = parseInt(this.getSelectedChoices());
var status = ["now", "still"];
if (choice = 1){
status = "still";
} else {
status = "now";
}
Qualtrics.SurveyEngine.setEmbeddedData("Status", status);
I still have not found a solution to this. Can anyone help me?
Thank you so much
var status = ["now", "still"];
if (choice = 1){
status = "still";
} else {
status = "now";
}
Qualtrics.SurveyEngine.setEmbeddedData("Status", status);
I still have not found a solution to this. Can anyone help me?
Thank you so much
Leave a Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.