wuschel_lux
Member
Hi all,
I need your experts advice for following case.
I want to create a form for parents to register on a site. A Joomla user is also be generated with the juser form plugin and stored. Works fine.
In this register form parents are storing data like address, contact data, .. and also they can add up to 3 kids (first name, last name, birthday).
On a second form they can register to a course, I want to have parents data already available and a dropdown with the children inside, when logged in.
I tried now to get the info in the form but I am stuck to get the info. I managed to get the joomla ID and the user's name with the code in a calc field:
Is there a more elegant or simple way to get the some data of form 1 into form 2? Or have I a complete design problem with this idea.
Thanks for your contribution and help.
BR
I need your experts advice for following case.
I want to create a form for parents to register on a site. A Joomla user is also be generated with the juser form plugin and stored. Works fine.
In this register form parents are storing data like address, contact data, .. and also they can add up to 3 kids (first name, last name, birthday).
On a second form they can register to a course, I want to have parents data already available and a dropdown with the children inside, when logged in.
I tried now to get the info in the form but I am stuck to get the info. I managed to get the joomla ID and the user's name with the code in a calc field:
But to get the ID from the fabrik table with the parent's data in, I failed as I can not do a SQL query on a calc element from a calc element.$user =& JFactory::getUser();
$userId = (int) $user->get('id');
return (int) $userId;
Is there a more elegant or simple way to get the some data of form 1 into form 2? Or have I a complete design problem with this idea.
Thanks for your contribution and help.
BR