# Using jr:choice-name and indexed-repeat together

**URL:** <https://forum.getodk.org/t/using-jr-choice-name-and-indexed-repeat-together/13024>\
**Category:** Support\
**Created:** [May 9, 2018, 9:17am UTC](https://forum.getodk.org/t/using-jr-choice-name-and-indexed-repeat-together/13024 "2018-05-09T09:17:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmendes](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/l/7cd45c/32.png) [@lmendes](https://forum.getodk.org/u/lmendes)\
**Post date:** [May 9, 2018, 9:17am UTC](https://forum.getodk.org/t/using-jr-choice-name-and-indexed-repeat-together/13024/1 "2018-05-09T09:17:43Z")

</div>

Hello ODK users

I have been struggling to get jr:choice-name to work with indexed-repeat. I have read the existing forum topics on this but I think I am missing something key.

This is what I am currently using:  
jr:choice-name(indexed-repeat(${Op2.2\_crop}, ${crops}, position(..)),'${Op2.2\_crop}')

Op2.2\_crop is the select\_one option which lists four different types of crop. A user can select multiple crops in one form which is why I have the indexed-repeat function. I want the indexed-repeat to show the choice label instead of the name.  
Please help!  
Laura[WOSE LogframeKOBOv.1.3.xlsx](https://getodk.b-cdn.net/uploads/default/original/2X/b/bd1d1b8e2f98aa57eea03cfc6e8ac2109a5d2c61.xlsx) (16.8 KB)

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [May 9, 2018, 10:57am UTC](https://forum.getodk.org/t/using-jr-choice-name-and-indexed-repeat-together/13024/2 "2018-05-09T10:57:19Z")

</div>

Hi @lmendes

please take a look at this example: [choice\_name\_and\_indexed-repeat.xls](https://getodk.b-cdn.net/uploads/default/original/2X/7/7a403a0fdf236b2b42f839bc4ac7df9a6a3f43f5.xls) (7.5 KB)

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [September 4, 2018, 2:59pm UTC](https://forum.getodk.org/t/using-jr-choice-name-and-indexed-repeat-together/13024/3 "2018-09-04T14:59:24Z")

</div>

2 posts were merged into an existing topic: [Using index-repeat and jr:choice for repeat group](https://forum.getodk.org/t/using-index-repeat-and-jr-choice-for-repeat-group/14960/3)
