How to make a question like this in 2 languages. | XM Community
Skip to main content

grafik.pngHallo,
I tried to do a question like the one above and used the javascript code:
Qualtrics.SurveyEngine.addOnload(function() {
   jQuery("#"+this.questionId+" div.QuestionBody").after('people before my experience gets spoiled.

');
});
However, I have my questionnaire in 2 languages and I don't manage to get program that. I would appreciate your help.
Kind regards,
Margit

Create a MC question at the beginning of your survey where the choices are text you need translated in JS and translate it. Then hide it with display logic. Pipe the choice text from the MC question into your JS. The text will then be translated into the current language when a respondent takes the survey.


TomG Would you have example Javascript of this? I'm trying to write a similar code for text to pipe in based on the Language. IF english - "with others" and IF german "Mit anderen"

Thanks!


https://community.qualtrics.com/XMcommunity/discussion/comment/40722#Comment_40722Pipe the 'with others' choice from you hidden MC into your JS. For example, if it were something like the original post above:
jQuery("#"+this.questionId+" .QuestionBody").after("

${q://QID1/ChoiceDescription/1}
");



Leave a Reply