View Full Version : [FIXED] CheckBox has no validation options

29 Apr 2008, 2:19 AM
CheckBox does not allow you to set a Validator like TextField - this function would be nice for cases when CheckBox must be selected (ie like agreeing or enabling something that is mutual to proceed) - notification could then be used to explain that checking is required to proceed etc...

edit - simple solution would be to add method setAllowBlank(false) and utilise the invalidText property for displaying reason.

2 May 2008, 5:30 AM
I would like to see this as well. Thanks

13 May 2008, 9:21 AM
I have created a new MultiField which RadioGroup and CheckBoxGroup now extend. MultiField supports a Validator and standard error field marking. So you can add a Validator to CheckBoxGroup and RadioGroup and return any error text you like. Will this meet your requirements? Change is in SVN.