...
On CommCare HQ, go into your desired application. Click on the form in which you are registering your subcase/ related case.
Select the “case management” tab. On the bottom of the case management tab, you will see the heading “Child Cases””. Select the plus (+) sign to open the secondary case you want that is linked to the “main” case. For example, if the child case were a baby, select the module in which the case type is "baby."
If desired, you can add a question that serves as the condition to open the child case (i.e. Only if the answer to <question> is <answer>).
Select the questions/data points that you want to also be associated to the child case. At a minimum you must specify a question that serves as the name of the new case.
Save your changes and try it out!
...
Opening Child Cases from a Repeat
...
Groups
It is possible to open a child case from questions that are in a repeat group Repeat Groups . This is useful if you want to be able to open multiple child cases of one type - for example if you want to be able to conduct a survey and register a case for every household member.
...
Accessing Parent Case Properties
...
The application builder gives Child cases the ability to access and update properties of the parent case.
...