Opened 13 years ago

Last modified 4 years ago

#6009 closed enhancement

CheckBox: support required=true — at Version 7

Reported by: nonken Owned by: Nathan Toone
Priority: high Milestone: 2.0
Component: Dijit - Form Version: 1.0
Keywords: CheckBox, required Cc:
Blocked By: Blocking:

Description (last modified by dante)

In some use-cases you want checkboxes to be required to be checked. Typical example is "do you agree to these license terms?" in an install wizard.

Also wondering about radio field. Are there cases where you first set no checked value and then have a required one?

Change History (7)

comment:1 Changed 13 years ago by bill

Cc: [email protected] added
Component: DijitDojox
Description: modified (diff)
Milestone: 1.2
Owner: set to Adam Peller
Summary: dijitCheckBox, isValid supportCheckBox: support required=true

Marking for consideration for 1.2. This is probably a dojox.form thing more than a dijit thing? Not sure.

comment:2 Changed 13 years ago by bill

Component: DojoxDojoX Form
Owner: changed from Adam Peller to dante

comment:3 Changed 13 years ago by nathan

Cc: nathan added; [email protected] removed

comment:4 Changed 13 years ago by nonken

I'd keep it in dijit since this functionality is quite essential for form handling. The above use cases appear on almost every site which deals with usersignups, sales or other e-commerce

comment:5 Changed 13 years ago by nathan

I tend to agree - I don't think this is so much a "new" widget as a mechanism for adding support for isValid and validate to the existing widget.

comment:6 Changed 13 years ago by guest

I made some suggestions about CheckBox? enhancements on #6388. I think adding validate, isValid, and required would be valuable for checkboxes. They should also have an errorMessage attribute, which is displayed next to the checkbox when it's invalid.

comment:7 Changed 13 years ago by dante

Cc: nathan removed
Description: modified (diff)
Owner: changed from dante to Nathan Toone
Note: See TracTickets for help on using tickets.