Add validators with parameters
Some validators, such as min-val, need parameters to
work properly. Parameters are added to the validator names separated with an
underscore:
This will add the min-lenght validator to the field with the
parameter 3 (ie name should be atleast 3 characters).
Example
The following form uses parameters with some validators. See code below.
Next: Specify custom error messages | Back to HTML extension features index