Validatious 2.0

Easy form validation with unobtrusive JavaScript

Limit number of errors

By default, the reporting module will display all available error messages when something goes wrong. This may or may not be what you want. You can change this value through the property displayErrors. This property takes the following values:

Example

The following example limits the number of error messages for fields to one at a time. Try submitting an empty form to see the required message appear. Then enter a single character to see the min-length message. Finally, enter a quotation mark or the likes of it and watch the final message appear.


Example

The next example shows how you can make the fieldset display all the messages.


Next: Message position | Back to Reporting extension features index

© 2008 Christian Johansen. Validatious is licensed with a BSD License, documentation and site content with CC Attribution-Share Alike. About.