getodk / xforms-spec

The XForms-derived specification used in the ODK ecosystem. If you are interested in building a tool that is compliant with the forms rendered by ODK tools, this is the place to start. ✨⚒✨
https://getodk.github.io/xforms-spec/
30 stars 26 forks source link

Clarify that repeat naming group must be first child #309

Open lognaturel opened 5 months ago

lognaturel commented 5 months ago

The current wording implies that if you have the following structure:

repeat
    question
    group

the label of that group would be used as the label for repeat instances. I don't believe that was ever the intent. In both Collect and Enketo, a group label is only used as an repeat instance label if it is the first child of that repeat. That's also how it's documented in the ODK docs: https://docs.getodk.org/form-logic/#naming-repeats-to-help-with-navigation