I am moving a site from EE to Craft and trying to figure out the best Craft approach to something I did with lots of php and url parameters in EE.
The overview: the site is a Family Counseling Clinic. As part of their program, they have parents register as users on their site. The parents create a profile for each of their children and then, for each child, they fill out a number of questionnaires.
The basic issue is how to set up these relationships, given that I am using front end forms.
Since the parent is a registered user and is creating the child profile(s) (as a channel entry), the relationship can be based on entry.authorId(theParent). No problem there.
The relationship between child and forms is where I am looking for a Crafty solution. One obvious approach is to use Structure for the child profiles and have the questionnaires as a "child entries". The other possibility that occurs to me is to use an Entries field in a Questionnaire channel that is tied to Child channel entries.
In both cases the question is whether it is possible to do either one of those using a front end form, which would either require setting the parent entry for the Structure solution or the Entry field for the other.
Hope this is clear, and thanks for any suggestions!