Is it possible to set embedded data element from selected choice group? | XM Community
Skip to main content
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?
``` Qualtrics.SurveyEngine.addOnPageSubmit(function() { var group = jQuery("#"+this.questionId+" input:checked").closest("ul").prev().text(); Qualtrics.SurveyEngine.setEmbeddedData("group", group); }); ```