LengthMaxΒΆ
Checks if the value of a field has less than the configured length
Example Code:
validators {
DefaultValidator {
model = DefaultValidator
config {
fields {
post-code.errorChecks {
lengthMax {
model = LengthMax
lengthMax = 7
}
}
}
}
}
}
Properties
lengthMax |
Sets the max string length a field value can be. |
Mandatory |
False |
Data Type |
Integer |
Default |
0 |