ValueRangeΒΆ

Checks if the value of a field is between or equal the configured values.

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        age.errorChecks {
          valueRange {
            model = ValueRange
            valueMax = 100
            valueMin = 18
          }
        }
      }
    }
  }
}

Properties

valueMax

Sets the max value a field value can be.

Mandatory

False

Data Type

Float|Integer

Default

0

valueMin

Sets the min value a field value must be.

Mandatory

False

Data Type

Float|Integer

Default

0