E-mail confirm

Home Forums Quform WordPress E-mail confirm

This topic is: resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2220
    extrabold
    Participant

    How to add a field with e-mail confirm ?

    I have a e-mail field and a confirm e-mail field.

    #2221
    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.

    #2222
    extrabold
    Participant

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

    #2225
    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.

    #2275
    extrabold
    Participant

    That’s it, thank you again

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