ValueMaxΒΆ

Checks if the value of a field is less or equal than the configured value.

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        age.errorChecks {
          valueMax {
            model = ValueMax
            valueMax = 100
          }
        }
        mass.errorChecks {
          valueMax {
            model = ValueMax
            valueMax = 10.99
          }
        }
      }
    }
  }
}

Properties

valueMax

Sets the max value a field value can be.

Mandatory

False

Data Type

Float|Integer

Default

0