When we add translations to a survey, we will need to add flag icons so users are able to change languages. For example, if visiting Italy and you get sent a survey in Italian but you're English, you will be able to change the language to English so you are able to fill it out.
To add flags to the survey:
- Go to 'Properties' on the right hand side and make sure this is on the Survey (not a page).
- Scroll down to 'Language Picker' and start adding the languages and flags.
- Add a new field:
- In 'Value' add the code which will always be {"surveyLanguage":"xx",
"flagIcon":"xx"}
- The 'Text' should be the language in that language i.e. Italian would be Italiano.
The language code can be found in the survey JSON once translations have been added. For example, this is the code for Italy:
For this example, this is how things would read/look
On DS language picker:
Value - {"surveyLanguage":"it", "flagIcon":"it"}
Text - italiano
Survey: