Data Type Option
|
Validation
|
Associated Data Types
|
||
---|---|---|---|---|
Maximum Value
|
Maximum acceptable value for the field.
|
• Number
• Integer
• Percent
• Quantity
• Maximum Amount
|
||
Minimum Value
|
Minimum acceptable value for the field.
|
• Number
• Integer
• Percent
• Quantity
• Minimum Amount
|
||
Unique
|
Constrains each value in the field to be unique.
|
• Number
• Integer
• Percent
• String
• Email Address
|
||
Maximum Length
|
Maximum acceptable string length for the field.
|
• String
• Text
• Hashed Password
|
||
Before
|
Earliest acceptable date, time, or timestamp value for the field.
|
• Date
• Time
• Timestamp
|
||
After
|
Latest acceptable date, time, or timestamp value for the field.
|
• Date
• Time
• Timestamp
|
||
Allowed Units
|
Acceptable unit or units for the field.
|
• Quantity
• Interval
|
||
Max Height
|
Maximum acceptable image height in pixels for an image field.
|
Image
|
||
Max Width
|
Maximum acceptable image width in pixels for an image field.
|
Image
|
||
Maximum Size
|
Maximum acceptable file size in megabytes for a field.
|
File
|
|
Custom data validation relies on Groovy source code. For Groovy source code class definitions and examples, see Custom Data Validation Source Code in Max for Developers.
|