Cognito-forms – Comparing Strings in Address Lines

cognito-forms

I need to set Address2.Line1 != Address.Line1 in the same form.

Originally, I had thought a simple reference to the input fields in a conditional would work, but the rule fails when testing; i.e., no matter what text is entered into the Address fields, a custom error always shows.

Looking through Cognito Form's guides, I do not see supported options for CHAR arrays or other variables that can take "Address.Line" references rather than specifically enter text.

Best way to achieve this?

Best Answer

As per Cognito Forms Support:

=(Address.Line1 = Address2.Line1) or (Address.City = Address2.City) or (Address.PostalCode = Address2.PostalCode) or (Address.State = Address2.State)