I added this code to my child theme function.php file and it worked fine for one form. I now have two forms needing this function, but when I duplicated the code below and changed the field ID values, the site wouldn’t load anymore. Ideas?
function mytheme_confirm_email($valid, $value, $element) { if ($value != $element->getForm()->getValue(‘iphorm_2_8’)) { $valid = false; $element->addError(‘The email addresses do not match’); }