Validating Fields
There are a few built in validators available for template developers so that they can easily configure a content type field to get validated whenever it is saved. These validators can be configured for a content type field by defining certain predefined parameters. Below is a table describing the available validation schemes.
Parameter name | Value | Struts message key | Description |
---|---|---|---|
|
|
|
Validates the field ensuring that it is not empty |
|
|
|
Validates the field ensuring that the input value is an email address |
|
|
|
Validates the field ensuring that the input value
has the minimum number of characters. Example:
|
|
|
|
Validates the field ensuring that the input value has
at most the configured number of characters.
Example: |
|
|
|
Validates that the field value is a number |
|
|
|
Validates the field ensuring that the input value is a valid phone number |
|
|
|
Ensures that the input value consists of only letters and digits |
|
|
|
Ensures that the input date value is of a past date.
The format must be: |
|
A valid Java regular expression that can be compiled
with: |
|
Validates the input value with the configured regular expression |