EqualsFieldΒΆ

Checks if a field value equals or not equals another field value.

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        password_repeat.errorChecks {
          equalsField {
            model = EqualsField
            field = 1.password
          }
        }
        username.errorChecks {
          equalsField {
            model = EqualsField
            equal = False
            field = 1.password
          }
        }
      }
    }
  }
}

Properties

equal

Set false to negate the comparison

Mandatory

False

Data Type

Boolean

Default

True

field

Path name of the field that must be equal to the value of a given field

Mandatory

False

Data Type

String

Default

Empty String