I have a multiple choice question with answers organized into groups. Is it possible to capture the assigned group for a selected answer and set the value as an embedded data element?
Page 1 / 1
```
Qualtrics.SurveyEngine.addOnPageSubmit(function() {
var group = jQuery("#"+this.questionId+" input:checked").closest("ul").prev().text();
Qualtrics.SurveyEngine.setEmbeddedData("group", group);
});
```
Qualtrics.SurveyEngine.addOnPageSubmit(function() {
var group = jQuery("#"+this.questionId+" input:checked").closest("ul").prev().text();
Qualtrics.SurveyEngine.setEmbeddedData("group", group);
});
```
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.