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

gauravbhagatgauravbhagat DublinCommunity Member - Trial User Qubie ✭

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

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?

Answers

  • YashYash IndiaCommunity Member - Trial User Qubie ✭

    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.

    set data

Sign In to Comment