Creating Subforms in CommCare

Dear CommCare Users,

Is there a way i can create a link to a sub-form within a form?

For example, in the main form i wish to display a list of lesson titles and
when they select the lesson title the app opens a form for that lesson.
Each lesson has its own unique set of messages,images and audios built as
independent forms. The UI would look like below:

Lesson 1

Lesson 2

Lesson 3

View all lessons
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6

Lesson n

My main interest is when the user selects a lesson under “View all
lessons”, the app should be able to load a form corresponding to a selected
option.

We don’t want to use fixtures/Lookup tables for lessons under “View all
lessons” group. Rather we would like to have them pre-built within
independent forms, within the app, which then get loaded based on the
selected option.

Any directions, even if it calls for editing raw xml?

Thanks,
Chaiwa.

Hey Chaiwa,

Unfortunately I do not believe this is possible (though it would be a great
feature!).

If you put all the “lesson” forms in groups you could use copy/paste to put
them in the “all lessons” forms, but then you would still have to make any
future edits in multiple places.

Cory

··· On Thu, Feb 25, 2016 at 8:03 PM, Chaiwa Berian wrote:

Dear CommCare Users,

Is there a way i can create a link to a sub-form within a form?

For example, in the main form i wish to display a list of lesson titles
and when they select the lesson title the app opens a form for that lesson.
Each lesson has its own unique set of messages,images and audios built as
independent forms. The UI would look like below:

Lesson 1

Lesson 2

Lesson 3

View all lessons
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6

Lesson n

My main interest is when the user selects a lesson under “View all
lessons”, the app should be able to load a form corresponding to a selected
option.

We don’t want to use fixtures/Lookup tables for lessons under “View all
lessons” group. Rather we would like to have them pre-built within
independent forms, within the app, which then get loaded based on the
selected option.

Any directions, even if it calls for editing raw xml?

Thanks,
Chaiwa.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.