ContainsOneΒΆ

Checks if a field contains at least one of the configured values

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        privacy_policy.errorChecks {
          containsOne {
            model = ContainsOne
            values = Yes,Ja
          }
        }
      }
    }
  }
}

Properties

values

Comma separated list of values of which one must be the value of a given field

Mandatory

False

Data Type

String

Default

Empty String