Negate validators
It's possible to apply the inverse of a validator to a field. By prefixing a
validator name with not_, the field will be valid when the
validator fails.
Note: default error messages makes no sense when validators are inverted like this, so a custom error message should be applied.
Example
In the following example a user can enter his address, but we want to make sure the user doesn't enter an email address.
Next: Validating radio buttons and checkboxes | Back to HTML extension features index