detect language in Survey123

535
2
12-05-2017 04:37 AM
ITDepartment3
New Contributor

Is it possible to detect the language the user has switched to in the Survey123 app and perform a calculation based on the selected language?

We'd like to use that in reports, e.g. show a disclaimer from a Notes field (calculation:if lang1 then text1 else text2) in the language that has been used to capture the entry. 

Or is there a better way to get the same result?

0 Kudos
2 Replies
JamesTedrick
Esri Esteemed Contributor

Hi,

I think there is a better way to accomplish this.  Notes, like other questions, support multiple languages - you can place the text1 in the label::<lang1> column and text2 in the label::<lang2> column.

0 Kudos
JohnathanHasthorpe
Esri Regular Contributor

While the field app recognises the locale of the app and automatically adjusts for time zone, language (UI) and units - your requirement would be to localise the form content. To do this you would need to translate your labels, as detailed here: Multiple language support—Survey123 for ArcGIS | ArcGIS 

The only limitation of this method is that the user would have to manually select the right language in the form (it would not be automatic).

0 Kudos