How to pipe in non-translated answer choice to an embedded data | XM Community
Question

How to pipe in non-translated answer choice to an embedded data

  • 20 January 2020
  • 1 reply
  • 21 views

Badge +2
Hello,

I need to pipe in non-translated answer choice to an ED. For example if a question has answer choice Man/Woman in English and Hombre/Mujer in Spanish then when the survey is taken in Spanish the ED should contain value as "Man".

Any thoughts how this can be done?

1 reply

Userlevel 1
Badge +3
Hi Gaurav,

You can add the below code to your next question.

var age = "${q://QID13/SelectedChoicesRecode}"
if(age=="1")
{
Qualtrics.SurveyEngine.setEmbeddedData("QAgeData","Men");
}
if(age=="2")
{
Qualtrics.SurveyEngine.setEmbeddedData("QAgeData","Woman");
}
if(age=="3")
{
Qualtrics.SurveyEngine.setEmbeddedData("QAgeData","Other");
}

Make sure you have replaced your question ID with QID13 and define your embedded variable QAgeData in the survey flow.

Please see the below screenshot for more info and let me know if any difficulty here.

<img src="https://lucid.co1.qualtrics.com/ControlPanel/Graphic.php?IM=IM_en9jhUZ7wPLPSaF" alt="set data" height="900px" width="600px">

Leave a Reply