At the moment I'm trying to work out a solution to have a limit of 2 submissions of a form per Joomla-user. This works great, but the next step is to link multiple other forms to each of these 2 submissions, e.g.:
John's contact details (Form 1)
- Hobby data belonging to John (Form 2)
- Work data belonging to John (Form 3)
Peter's contact details (Form 1)
- Hobby data belonging to Peter (Form 2)
- Work data belonging to Peter (Form 3)
The goal is to store information relating to two people on a single Joomla-account. This data should be editable (Directories-functionality) is by the Joomla-account in question.
My first (and easiest) solution was to use a single form with multiple pages, then seeing if there's a way to load a $_GET-variable which would decide which form page to show, as I want the Contact, Hobby and Work data to be inserted by "separate" forms. Unfortunately the front-end edit functionality (Directories) doesn't split the form in multiple pages and to my knowledge there is no way to add multiple "Directories" to a single form. There's only a way to limit the amount of fields one can edit in the front-end editing option.
My second solution would be to make it a huge conditional form based on a drop-down list containing the options (Contact, Hobby, Work). However, the same problems arise at the front-end edit functionality, only being able to show a huge list of this single form.
A third way would be to make 3 separate forms, Contact form, Hobby form, Work form and find a way to link a single (1) submission from the Hobby and Work form to the primary Contact form. Is there a way to accomplish this? I've read about functionality to show data from a form in another form. Ideally my page would look like this:
Not trying to re-invent facebook, the example is just to make it as easy as possible to understand. It would be great to be able to split one bigger form into 3 separate smaller forms. However, then I'm still left with the problem that i want to link only one of these smaller forms to the "parent" form with contact data. Hopefully someone still understands my situation and can point me into the right direction.