This topic is: resolved
- This topic has 4 replies, 2 voices, and was last updated 12 years, 2 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forums › Quform WordPress › E-mail confirm
How to add a field with e-mail confirm ?
I have a e-mail field and a confirm e-mail field.
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
works fine, but if I need to have 2 diferents e-mails (with confirm).
I try to copy and past the code in my functions.php, but dont work
add_filter('iphorm_element_valid_iphorm_1_17', 'mytheme_confirm_email', 10, 3);
function mytheme_confirm_email($valid, $value, $element)
{
if ($value != $element->getForm()->getValue('iphorm_1_9')) {
$valid = false;
$element->addError('E-mails não conferem');
}
return $valid;
}
add_filter('iphorm_element_valid_iphorm_1_19', 'mytheme_confirm_email', 10, 3);
function mytheme_confirm_email($valid, $value, $element)
{
if ($value != $element->getForm()->getValue('iphorm_1_10')) {
$valid = false;
$element->addError('E-mails não conferem');
}
return $valid;
}
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
That’s it, thank you again