I have a repeat. Inside the repeat is a select_one field from a list like below:
| list_name | name | label |
| proplist | 1 | prop1 |
| proplist | 2 | prop2 |
| proplist | 3 | prop3 |
| proplist | 4 | prop4 |
| proplist | 5 | prop5 |
I want to present the user with a list of what they have chosen in the repeat - the join( ) command is useful here, and works, but returns the name from the entry and not the label.
Example:
I enter 2 records in my repeat, where I chose from the list prop1,prop3. The output of join shows "1,3". Which is correct.
join() on its own: join(',',${property}) (shows 1,3)
What I want is the join() to show "prop1,prop3".
I've tried using jr:choice-name inside my join() function but that doesn't seem to work.
join() with my non-working use of jr:choice-name: join(',',jr:choice-name(${property},'${property}'))
Perhaps someone can point me in the right direction.
Sample survey attached.
Thanks for any help,
Tom S.