Hi all
I'm in the process of creating some enrollment forms here.
We're a volunteer driven club for divers.
We sign up for the club via paper at the moment.
The chairman would like me to do it electronically.
We have four different membership types.
Junior
Senior
Support
Family
The Junior / Senior / Support all have the same fields.
The Family has a lot of extra fields (as it's a multiperson membership).
Problem 1: How do I let the form change if they mark it as 'family', so I can ask for the extra fields.
I can imagine two scenarios that both requires a 'case' sort of module (an if statement if you please), but as far as I can see there are no such building block in the wizard.
Solution 1: FormA, select type of membership chooses the right form, with a dynamic header.
Solution 2: four copies of the same form (yuck).
Problem 2: How do I use the email verification form? I get the mail sent out with the verification link, and I have a 'confirmed'-form where it lands.
The flow is:
Fill FormA
Send verification mail
user clicks link
Goes to FormB
Press 'yes really'
mail is sent to the club with the info.
Data is removed from the table
I'm currently stuck at 'press yes really' and getting the mail sent out with the info.
I'm in the process of creating some enrollment forms here.
We're a volunteer driven club for divers.
We sign up for the club via paper at the moment.
The chairman would like me to do it electronically.
We have four different membership types.
Junior
Senior
Support
Family
The Junior / Senior / Support all have the same fields.
The Family has a lot of extra fields (as it's a multiperson membership).
Problem 1: How do I let the form change if they mark it as 'family', so I can ask for the extra fields.
I can imagine two scenarios that both requires a 'case' sort of module (an if statement if you please), but as far as I can see there are no such building block in the wizard.
Solution 1: FormA, select type of membership chooses the right form, with a dynamic header.
Solution 2: four copies of the same form (yuck).
Problem 2: How do I use the email verification form? I get the mail sent out with the verification link, and I have a 'confirmed'-form where it lands.
The flow is:
Fill FormA
Send verification mail
user clicks link
Goes to FormB
Press 'yes really'
mail is sent to the club with the info.
Data is removed from the table
I'm currently stuck at 'press yes really' and getting the mail sent out with the info.
Problem 2: How do I use the email verification form? I get the mail sent out with the verification link, and I have a 'confirmed'-form where it lands.
The flow is:
Fill FormA
Send verification mail
user clicks link
Goes to FormB
Press 'yes really'
mail is sent to the club with the info.
Data is removed from the table
Currently working on problem 2.
I have two not really working situations when the user goes to FormB.
If I place the 'send mail' action in "Email Verification Response" (which is in 'on load' action) it sends an email with the info I want, but then I don't have the 'yes really' anywhere.
So I place the "Email Verification Response" in 'on load', and then a 'load html' in success.
And the form there is just a 'yes really', no values entered, just the submit button shown with a 'I really mean it' text.
So in the 'submit' action I place the 'send mail', but then the mail is empty, ie. the values from the verification part is lost. So what do I do, how do I keep the values, and include them in the mail that is sent after the new submit?
Hey, I just got it working by putting in a ton of hidden fields with {value} as the default value, and giving the fields the same name as before.
Still one minor issue, I would like the user currently logged in to be shown in the email, so I've put in a custom element that reads:
<?php
$user =& JFactory::getUser();
echo "<H4>{$user->username}</H4>";
?>
The fieldname for the box is also username, and the value os shown nicely in the form, but when the mail is sent, where I write {username}, it isn't replaced with the real username, but just shows {username}.
Still one minor issue, I would like the user currently logged in to be shown in the email, so I've put in a custom element that reads:
<?php
$user =& JFactory::getUser();
echo "<H4>{$user->username}</H4>";
?>
The fieldname for the box is also username, and the value os shown nicely in the form, but when the mail is sent, where I write {username}, it isn't replaced with the real username, but just shows {username}.
This topic is locked and no more replies can be posted.