bggann
Active Member
I have a form with Ajax validation turned on. Most of the fields validate correctly, however I have one element which is an email repeat. You know the type. Enter your email ---- then Enter your email again (to validate).
I'm validating the email repeat field with php validation
$f = JRequest::getVar('fab_fc_raffle___Email');
return $data == $f;
This works fine on submit - if the emails do not match I fail validation.
But the Ajax validation always passes.
Does Ajax validation not work for PHP validation rules?
I'm validating the email repeat field with php validation
$f = JRequest::getVar('fab_fc_raffle___Email');
return $data == $f;
This works fine on submit - if the emails do not match I fail validation.
But the Ajax validation always passes.
Does Ajax validation not work for PHP validation rules?