How to set an interview language by a script question


Overview

 

SurveyToGo supports multiple languages within a single survey. To learn more about this,click here.

Once you implement multiple languages in a survey, you can choose what language to display in an interview through the “Languages” button in the data collection app during an interview.

Yet there’s also another way to choose the displayed language, through a “script question”. This How To will show you how this is done.

 1. Step 1: Create a “languages” list source

2. Step 2: Create a “language external list” question linked to the list source

3. Step 3: Add the code to auto-set the chosen language

 

Step 1: Create a “languages” list source

 Go to the survey’s Advanced tab -> Edit List Sources:

 Add a new list source with this code:

 LanguageMgr.FillLanguageList(list);

 For example, in the screenshot below, the list source is called “langs”:

 

Step 2: Create a “language external list” question linked to the list source

 Create an external list question and link the “language list source” you created to this question:

 Make sure to define this question as “Single Choice”:

 This question will display the list of all languages that were defined for the survey, for the surveyor to manually select a language from that list.

 

Step 3: Add the code to auto-set the chosen language

 In the End Script of the external list question, add this code:

LanguageMgr.SetLanguageByID(Answer(CurrQues));

 This will take the code of the selected language, and set it as the language to be displayed in the interview from this stage in the interview.

 

That’s it!

 Visit us at: http://www.dooblo.net

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.