LengthMinΒΆ

Checks if the value of a field has at least the configured length.

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        post-code.errorChecks {
          lengthMin {
            model = LengthMin
            lengthMin = 4
          }
        }
      }
    }
  }
}

Properties

lengthMin

Sets the min string length a field value must be.

Mandatory

False

Data Type

Integer

Default

0