Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. First we need to setup a label that contains the language codes that you want to use in your app.  In your form, add a label with the question ID of lang-code and label text that matches the language code for each language.  We'll also set a Display Condition of 1=2 on this to ensure that it doesn't appear in the form.  This label will be used to determine which language to display, based on what language is chosen. 


  2. Now add a single or multiple answer lookup table question question to the form 
  3. Choose the Lookup Table Data item
    1. Set the lookup table to the lookup table you uploaded (ex. state)
    2. Set the value field to the column in your table you want to store (ex. id)
    3. Set the label display text field to the following: name[@lang = jr:itext('lang-code-label')] . You can replace name with the column that contains multiple languages. 

    Image RemovedImage Added

  4. Update and Save your form.  Now the list of options should change their label based on what language is chosen for the application.  However, the data stored will remain the same.

...