Email Validation Filter Does Not Work When Email Confirmation Enabled [RESOLVED]

Hi there,

Your filter, “Email validation by third-party API”, does not work when the Email form field option, “Enable Email Confirmation”, is enabled.

When enabled, no matter what email address we enter in the email fields, we always get the validation message “Email is invalid” (or similar). It never goes through. When we disable the email confirmation option, the filter works like a charm.

Can you guys please verify this as well and provide a modified filter that works when the Email form field option, “Enable Email Confirmation”, is enabled? Updating your documentation would be great as well.

Thank you!

When the confirmation feature is enabled, $value is an array containing the values of both inputs, so to access the email address you’ll need to change:

'email'  => $value,

to

'email'  => rgar( $value, 0 ),
1 Like

Thanks, Richard! Worked like a charm. But then again, you knew that, right? :slight_smile:

PS: It would be awesome if you could update the affected documentation (e.g., add a note below the affected filter) to reflect your solution. Will help others.

Cheers!

I updated the documentation, Jonathan.

1 Like