kobotoolbox / enketo-express

We've moved! Please use the new repository 🠊 https://github.com/enketo/enketo-express
Apache License 2.0
102 stars 90 forks source link

no-collapse appearance doesn't work for nested repeat #899

Closed pbowen-oc closed 6 years ago

pbowen-oc commented 6 years ago

We observed a test form with a repeat nested in a non-repeating group. When the nested repeat had no-collapse appearance, it still displayed as collapsible in Enketo. In this case, the outer group did not have any appearance defined.

MartijnR commented 6 years ago

I think I may have only tested this with a hand-coded XForm. In pyxform the no-collapse appearance is added on the repeat instead of the parent group of the repeat.

https://docs.google.com/spreadsheets/d/1yoAKd2i9hJaVkE-1NfIGDYPf81chfxqWDSFLqMWwMbM/edit#gid=0

We may have to workaround this pyxform limitation as done with "compact" by going through enketo-xslt -> enketo-transformer -> enketo-core -> enketo-express -> enketo-express-oc :(