On Submit and valid email address – Download File

Home Forums Quform WordPress On Submit and valid email address – Download File

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

    Hello,

    I have a really simple setup i need to create. Client enters email – then needs to enter again (where it would have verify correct email). Then he can download a file.

    The confirmation email part i have already which is:

    // Add Confirm email address
    //
    add_filter('iphorm_element_valid_iphorm_23_77', 'confirm_email', 10, 3);
    function confirm_email($valid, $value, $element)
    {
    if ($value != $element->getForm()->getValue('iphorm_23_2') && $element->getForm()->getValue('iphorm_23_28') == 'Yes') {
    $valid = false;
    $element->addError('The emails do not match');
    }

    return $valid;
    }

    I would like to know what is the best approach to, when the emails match, he can download a file.

    Is there any way i can have a HTML element with the button(link) inside and thru conditional logic (if emails match) display that HTML element?

    Thanks

    Marco

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

    #9429
    brabox
    Participant

    Thank you Ally,

    #3 is the closet to what i want since i do not want it to take to another page.

    I will try it out today.

    Thank you!.

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