I want to display repeat number in label in text format

i want to display nth loop in label but in text format

You can determine the repeat number - aka index - from within a repeat group using the position(..) function. Try this:

index.xls (5.5 KB)

1 Like

it display only number i want to display first second, third etc

There is a trick you can use using a hidden field with space-separated texts and a calculation using the selected-at() function with the mentioned position(..).

See this XLSForm and temporary live link.

2 Likes

Neat trick! I probably would have initially abused a jr:choice-name() and accompanying (hidden) item list, instead of abusing selected-at() to perform my mapping... :wink:

1 Like