ContainsNoneΒΆ

Checks if a field contains none of the configured values.

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        message.errorChecks {
          containsNone {
            model = ContainsNone
            values = motherforking,shirtballs,badword
          }
        }
      }
    }
  }
}

Properties

values

Comma separated list of values of which none must be present in the value of a given field

Mandatory

False

Data Type

String

Default

Empty String