Displaying selected options from multi-select as a separate list

Referencing a select_* variable gives the values and not the labels. You would have to use jr:choice-name(${variable}, 'value') for each of the values you’d want to retrieve the correct choice label.

E.g

if(selected(${delivery_complications}, 'xyz'), jr:choice-name(${delivery_complications}, 'xyz') would give the choice label associated with value ‘xyz’.

Here’s a link to the odk spec on jr:choice-name

1 Like