ItemsRangeΒΆ
Checks if a field contains values between or equal the configured amount of items. (e.g. checkboxes)
Example Code:
validators {
DefaultValidator {
model = DefaultValidator
config {
fields {
interests.errorChecks {
itemsRange {
model = ItemsRange
itemsMax = 10
itemsMin = 1
}
}
}
}
}
}
Properties
itemsMax |
Sets the max amount of items a field value can contain. |
Mandatory |
False |
Data Type |
Integer |
Default |
0 |
itemsMin |
Sets the min amount of items a field value must contain. |
Mandatory |
False |
Data Type |
Integer |
Default |
0 |