Automatically increment an indexer in a repeated group

Hi @kevin_razafindrabe,

Here’s how you achieve both of your requests:

1- repeat_count

You need to add a repeat_count column to your begin_repeat, this help article helps you how to achieve that:

https://support.kobotoolbox.org/group_repeat.html#controlling-the-loop-of-repetition-in-a-roster

2- position(..)

Create a new calculate question that uses the position(..) function to get the index of the iteration in the repeat-group
Reference that calculate field in a note

Here’s an example on how to achieve that:

1 Like