Limit the number of iterations based on number given previous question

@hadish I think I finally figured what you mean. Please take a look at the attached XLSForm Is this what you meant?
Repeat Group.xlsx (10.7 KB)

Some notes on what I did:

  • created a new calculate question that uses the position(..) function to get the index of the iteration in the repeat-group in this case
  • references that calculate field in the 3 questions that you require.

Here is a snapshot of the changes highlighted

Hope this is it.

2 Likes