Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Prevent Build from putting groups inside groups #29

Closed
yanokwa opened this issue Jul 23, 2013 · 2 comments
Closed

Prevent Build from putting groups inside groups #29

yanokwa opened this issue Jul 23, 2013 · 2 comments

Comments

@yanokwa
Copy link
Member

yanokwa commented Jul 23, 2013

A field-list group inside another field-list group crashes Collect. Build should not allow such forms to be built.

E/AndroidRuntime( 7503): java.lang.RuntimeException: Only questions are allowed in 'field-list'.  Bad node is: /data
E/AndroidRuntime( 7503):    at org.odk.collect.android.logic.FormController.getQuestionPrompts(FormController.java:848)
E/AndroidRuntime( 7503):    at org.odk.collect.android.logic.FormController.stepToNextScreenEvent(FormController.java:593)
E/AndroidRuntime( 7503):    at org.odk.collect.android.activities.FormEntryActivity.showNextView(FormEntryActivity.java:1174)
E/AndroidRuntime( 7503):    at org.odk.collect.android.activities.FormEntryActivity.onFling(FormEntryActivity.java:2467)
E/AndroidRuntime( 7503):    at android.view.GestureDetector.onTouchEvent(GestureDetector.java:600)    
@issa-tseng
Copy link
Member

Erm, let's clarify this: generally groups inside of groups are just fine, right? It's just the field-list combo that breaks it? Or is it any group in a field-list group? What are the actual conditions?

@yanokwa
Copy link
Member Author

yanokwa commented Jul 23, 2013

Groups inside groups are fine. I think the rule is that you can only have individual questions inside a field-list group.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants