ItemsMaxΒΆ
Checks if a field contains not more than the configured amount of items. (e.g. checkboxes)
Example Code:
validators {
DefaultValidator {
model = DefaultValidator
config {
fields {
interests.errorChecks {
itemsMax {
model = ItemsMax
itemsMax = 10
}
}
}
}
}
}
Properties
itemsMax |
Sets the max amount of items a field value can contain. |
Mandatory |
False |
Data Type |
Integer |
Default |
0 |