Ticket #6005 (closed enhancement: fixed)
[cla][patch] Form.validate() will indicate errors in the form
| Reported by: | nathan | Owned by: | doughays |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | Dijit | Version: | 1.1b1 |
| Severity: | minor | Keywords: | |
| Cc: | bill |
Description (last modified by bill) (diff)
Make Form.validate() turn all the invalid or required-but-blank fields yellow, and focus on the first invalid (or required-but-blank) field. It is a way to visually expose to the user that things aren't quite right.
Implementation notes: widget.isValid() won't be removed. widget.validate is extended to return the valid state (a boolean). Form.validate is a new method that calls widget.validate for each field - and in the event that one of them is invalid, it focuses on the first invalid.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.