Home › Forums › Quform WordPress › E-mail confirm
- This topic has 4 replies, 2 voices, and was last updated 12 years ago by extrabold.
- AuthorPosts
- January 15, 2013 at 2:52 pm #2220extraboldParticipant
How to add a field with e-mail confirm ?
I have a e-mail field and a confirm e-mail field.
January 15, 2013 at 2:54 pm #2221AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 15, 2013 at 7:00 pm #2222extraboldParticipantworks 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 workadd_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;
}
January 16, 2013 at 8:46 am #2225AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 16, 2013 at 5:19 pm #2275extraboldParticipantThat’s it, thank you again
- AuthorPosts
- You must be logged in to reply to this topic.