How to Email Verify 2.0

Home Forums Quform WordPress How to Email Verify 2.0

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

    What is the code to add to the functions.php for the 2.01 version?

    I have tried the old code, and substituted the ids for the ones used in 2.0 – but it does nothing.


    add_filter('quform_1_10', 'my_confirm_email', 10, 3);
    function my_confirm_email($valid, $value, $element)
    {
    if ($value != $element->getForm()->getValue('quform_1_4')) { $valid = false;
    $element->addError('The email addresses do not match');
    }

    return $valid;
    }

    first id being the confirm ‘quform_1_10″ email field and the second ‘quform_1_4’ being the first email field.

    #23550
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #23582
    drewman1970
    Participant

    Thank you – just what I needed.

Viewing 3 posts - 1 through 3 (of 3 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