Linking two forms as Parent - Child

Hi All,

I have an app with two forms:

  • Group registration
  • Member registration

Given the characteristic of our enterprise when we form a group we are not
able to tell exactly how many members are going to participate in it, hence
we created a second, updatable, form to capture present and new members.

What I would like to have is a parent - child relationship with these two
forms. "Group registration" will register a group ID and be the parent
while "Member registration" will be the child and link each member to it's
parent group using the group ID.

Any suggestion on how to create this relationship?

Thank you very much!

Bests,
Alberto Gualtieri
M&E Officer at SaveAct, Pietermaritzburg, South Africa.

Hi Alberto,

We have a concept in CommCare that lines up well with your needs. In your
group module, you can open a "Child Case", which opens a case into another
module.

https://confluence.dimagi.com/display/commcarepublic/Child+Cases

You can then configure the Child module to require the user to first select
a parent before proceeding, which will filter for only children of the
provided parent

https://confluence.dimagi.com/display/commcarepublic/Case+List+and+Case+Detail+Configuration#CaseListandCaseDetailConfiguration-ParentChildSelection

-Clayton

··· On Thu, Nov 24, 2016 at 3:26 AM, Alberto Gualtieri wrote:

Hi All,

I have an app with two forms:

  • Group registration
  • Member registration

Given the characteristic of our enterprise when we form a group we are not
able to tell exactly how many members are going to participate in it, hence
we created a second, updatable, form to capture present and new members.

What I would like to have is a parent - child relationship with these two
forms. "Group registration" will register a group ID and be the parent
while "Member registration" will be the child and link each member to it's
parent group using the group ID.

Any suggestion on how to create this relationship?

Thank you very much!

Bests,
Alberto Gualtieri
M&E Officer at SaveAct, Pietermaritzburg, South Africa.

--
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.

Thank you Clayton_Sims for this. But for my case : I have a for registering a HIV client main case . A female HIV client can be registered to prevention from mother to child program (Case Child Level 1). This can be done as a child to the client main case. Now I am wondering how to proceed when she will have a baby because, a baby is also followed as a subcase (case Child Level 2).
I will appreciate your support.

Hi Emeric,

The "Child" case relationship in CommCare can go down as many levels as needed, so Child Cases can have Child cases as their own.

-Clayton

1 Like