double entry verification (e-mail)

Home Forums Quform WordPress double entry verification (e-mail)

This topic is: resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12112
    drewman1970
    Participant

    A 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

    #12120
    drewman1970
    Participant

    Never mind, I found the “how to” – thanks.

    Confirm email field

    • This reply was modified 9 years, 8 months ago by drewman1970.
    • This reply was modified 9 years, 8 months ago by drewman1970.
    #18245
    Rooimans
    Participant

    Dear 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

    #18349
    Rooimans
    Participant

    For 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;
    }

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy