Home > How To's > How to set an interview language by a script question

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

 

Categories: How To's
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: