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:
-1, default value, display all messages0, display no messages, only append class names on failing elementsn, wherenis any positive integer, display no more than this many messages
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