Hi - great form builder - will be very happy when it can de downloaded too.
Just having a small problem with validating email addresses in v3. I am asking the user to re-enter their email address into a second field box and I would like to compare and ensure the two are identical before form submission.
Using info from previous posts, I have entered the following into the validation area (bottom) of my form.html where field_12 is the first entry of the email and field_13 is the second:
if (validateField('field_12','fieldBox_12','email',1) == false)
retVal=false;
if (validateField('field_13','fieldBox_13','email',1) == false)
retVal=false;
if($field_12 == $field_13)
{echo "OK";}
else {
print "The e-mails do not match, please re-enter";}
I think I am putting the compare statement in the wrong area... any help will be much appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi - great form builder - will be very happy when it can de downloaded too.
Just having a small problem with validating email addresses in v3. I am asking the user to re-enter their email address into a second field box and I would like to compare and ensure the two are identical before form submission.
Using info from previous posts, I have entered the following into the validation area (bottom) of my form.html where field_12 is the first entry of the email and field_13 is the second:
if (validateField('field_12','fieldBox_12','email',1) == false)
retVal=false;
if (validateField('field_13','fieldBox_13','email',1) == false)
retVal=false;
if($field_12 == $field_13)
{echo "OK";}
else {
print "The e-mails do not match, please re-enter";}
I think I am putting the compare statement in the wrong area... any help will be much appreciated.