Hi there!
I have to categorize answers to groups and am using embedded data for that. It works for all my single response questions but with the multi sesponse question it does not work. It should be simple but somehow I was not able to find a soluteion so far
var zwinf_kat= "";
if("${q://QID115/SelectedChoicesRecode}" == "1") {zwinf_kat="1"};
if("${q://QID115/SelectedChoicesRecode}" == "2") {zwinf_kat="1"};
if("${q://QID115/SelectedChoicesRecode}" == "3") {zwinf_kat="2"};
Qualtrics.SurveyEngine.setEmbeddedData( "zwinf_kat", zwinf_kat);
Thank you for your help :-)
Cheers
Set embedded data based on a multiple choice question
Best answer by TomG
${q://QID115/ChoiceGroup/SelectedChoices} is a comma separated list of choices. So,
var zwinf_grob = "";
jQuery.each("${q://QID115/SelectedChoicesRecode}".split(", "), function(i, val) {
if(val=="3") zwinf_grob = "2";
else zwinf_grob = "1";
});
Qualtrics.SurveyEngine.setEmbeddedData( "zwinf_grob", zwinf_grob);
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
