jfquestiaux
Well-Known Member
In a registration form, I have an element for email and one for the email confirmation.
I am trying to set a PHP validation on the confirmation field to check whether the second email entered matches the first one, but I don't seem to be able to retreive the correct data from the first email element.
In the confirmation email element, I set the following code in the "condition" box :
But no matter what I enter in this field, the validation is always OK.
Yet, the condition box works because if I write
the validation fires if I enter 5 and does not fire if I enter 4.
Note : this confirmation email element is in a (non repeated) joined group.
Joomla 3.0.2 - Fabrik 3.1 + yesterday's GitHub.
I am trying to set a PHP validation on the confirmation field to check whether the second email entered matches the first one, but I don't seem to be able to retreive the correct data from the first email element.
In the confirmation email element, I set the following code in the "condition" box :
Code:
return $data == JFactory::getApplication()->input->get('email');
Yet, the condition box works because if I write
Code:
return $data == '5';
the validation fires if I enter 5 and does not fire if I enter 4.
Note : this confirmation email element is in a (non repeated) joined group.
Joomla 3.0.2 - Fabrik 3.1 + yesterday's GitHub.