<![CDATA[ Comparing Form Field Values - My Forums]]> https://forums.modx.com/thread/?thread=101557 <![CDATA[Comparing Form Field Values]]> https://forums.modx.com/thread/101557/comparing-form-field-values#dis-post-547786
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.b Jan 05, 2017, 05:10 AM https://forums.modx.com/thread/101557/comparing-form-field-values#dis-post-547786
<![CDATA[Re: Comparing Form Field Values]]> https://forums.modx.com/thread/101557/comparing-form-field-values#dis-post-547810
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.]]>
BobRay Jan 06, 2017, 05:09 AM https://forums.modx.com/thread/101557/comparing-form-field-values#dis-post-547810