Unexpected behavious with groups and nested repeats

Hello everyone,

I am experiencing what may be a bug with nested repeats used within groups, and I could not find a similar issue. I reproduced it with the simple xls form attached.

The situation is the following :

  • I am interviewing members of a households on the trips they did the day before
  • A first question on number of members triggers a first repeat, for each member
  • a filter question asks if the person did move the day before
    • if no, we stop and interview the next person
    • if yes, we ask how many trips, which triggers the nested repeat on trips

In the specific situation where the first member answered “No” to the filtering question, and the second member “yes”, then the nested repeat on trips of the 2nd member shows information (name here) of the first member, and does not work.

This only occurs with the web application, not in the smartphone kobocollect app. The database seems OK in the end when collected with kobocollect, but it is not possible to review/edit submitted bugged forms properly through Kobotoolbox (webapp).

Any help on this would be awesome!

PS: I found out that there is no issue when the nested repeat is not wrapped by a group, but this is not doable with a complex form…

nested_repeat_group_BUG.xlsx (22.5 KB)

if in any case you want to call an it into REPEAT group, and the item is another repeat group just use INDEXED REPEAT.

later if i had enough time i will check you form though

This sounds a bit like a known issue in Enketo, where the relevance logic on the second repeat iteration is not evaluated correctly (although it is on the first iteration).

Could you perhaps look at this documented bug and confirm if you are seeing the same behavior?

Thanks @pruzige for your reply, I dont think that could solve my issue which is different to the one you shared!

Hi @Xiphware, thank you for your reply, this looks a bit similar indeed as it occurs on nested repeats and not on the first iteration, but my problem is not directly related to the relevance logic of the repeats (no relevance is applied on them)…