Prevent two email address fields having the same value in a form

By: Paul Dickens | Asked: 10/14/2025
ForumsCategory: General questionsPrevent two email address fields having the same value in a form
Paul Dickens asked 4 weeks ago

I have two email address fields in a form, say email1 and email2; email2 is in a repeater.

I want to raise an error on submit when the same email address is entered in email1 and any email2 entry.

I've tried coding a snippet using frm_validate_field_entry but this raises a critical wordpress error...

Any advice appreciated

 

Rob LeVineRob LeVine
Staff replied 4 weeks ago

If it raises a critical WordPress error, why don't you fix it or at least post the code and error?

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right