Ticket #263 (closed defect: fixed)
Conditional validation of a forms control.
| Reported by: | karel | Owned by: | freya |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.4 |
| Component: | modules/kauri-forms | Version: | trunk |
| Keywords: | Cc: |
Description
Example use case: If you check the 'I want spam' checkbox, the 'email address' field becomes required.
Suggested solution: Add a 'condition' option to the "required" validator. This condition can be set to a function (which returns true when the value is required).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.