EqualsΒΆ

Checks if a field equals or not equals the configured value.

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        privacy_policy.errorChecks {
          equals {
            model = Equals
            value = Yes
          }
        }
        newsletter.errorChecks {
          equals {
            model = Equals
            equal = False
            value = No
          }
        }
      }
    }
  }
}

Properties

equal

Set false to negate the comparison

Mandatory

False

Data Type

Boolean

Default

True

value

Value that must be equal to the value of a given field

Mandatory

False

Data Type

String

Default

Empty String