-
- 708 Posts
Revo 2.5.4
Using the Login Snippet, specifically Update Profile, I need to compare/validate 2 text fields to ensure they do not have the same value (case-insensitive), and if they do to throw an error and prevent the form from being submitted.
I’ve looked at various PHP examples for comparing field values but so far I have not been able to get it to work with the Update Profile form.
Todd
-
- 24,544 Posts
It sounds like you need a custom validator (or some JavaScript).
Have you seen this:
https://docs.modx.com/extras/revo/formit/formit.validators#FormIt.Validators-CustomValidators?
I believe it would work the same way in UpdateProfile. I could be wrong.