Home › Forums › Quform WordPress › double entry verification (e-mail)
- This topic has 3 replies, 2 voices, and was last updated 9 years, 2 months ago by
Rooimans.
- AuthorPosts
- August 8, 2014 at 7:53 am #12112
drewman1970
ParticipantA client has asked me to have a double entry email field with verification that the first email entry matched the second, as they have issues with customers entering e-mails correctly.
Can the might Quform do this? If so, where do we set this option. If not, what customization would we need to make this function possible.
Cheers
August 9, 2014 at 10:12 am #12120drewman1970
ParticipantNever mind, I found the “how to” – thanks.
- This reply was modified 10 years, 9 months ago by
drewman1970.
- This reply was modified 10 years, 9 months ago by
drewman1970.
February 19, 2016 at 8:41 pm #18245Rooimans
ParticipantDear Ally,
I have the above solution running for one of my forms which works great. I wanted to add this feature to a second form, but unfortunately this does not work by simple duplication of the provided code. Could you give a suggestion for this problem?
Thanks in advance.
Kind regards,
Thijs
March 1, 2016 at 8:57 pm #18349Rooimans
ParticipantFor those interested in the solution. Just copy paste the code and give an increment to the function name:
add_filter(‘iphorm_element_valid_iphorm_1_2’, ‘my_confirm_email2’, 10, 3);
function my_confirm_email2($valid, $value, $element)
{
if ($value != $element->getForm()->getValue(‘iphorm_1_1’)) {
$valid = false;
$element->addError(‘The email addresses do not match’);
}return $valid;
} - This reply was modified 10 years, 9 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.