Return English only labels in multilingual form using jr:choice-name

Hi,
Is it possible to return the text label in a calculated field as English (en) only when using a multilingual form and the enumerators have selected a different language?

jr:choice-name(${Project_ID},'${Project_ID}')

thanks

Could you provide more details, please, or a related example/extract of your form, incl. choices?

  • Esp. what are the types of the variables?
  • Do you use multiple language labels for the Project_ID? If not, you can just copy the ::English (en) label into all other label columns for this ID-variable. (In XLSForm, you can use an Excel cell reference formula for this copied value).

Thanks for the reply Wroos, Project_ID was just one example and not a good one as the name is the same across all languages as you suggest, however several common species names change across the languages and I would like to only return the English name if possible independent of the language the enumerator is completing the form in. The variables are text values, common names of animals.
thanks

jr:choice-name() returns the label value, in the active language. I am not aware of a way to get a label of a non-active language using that function. See the following two posts for more details. The first one has a workaround described in the thread.

Depending on the number of choices to treat here, you might use some workarounds:

Hint: Often the search function of the forum can help to find similar discussions and examples.

Thanks for this i got it to work.