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?