It seems that the core bug with checkboxes in drupal forms is on the way out #179932: Required radios/checkboxes are not validated

Testing the patch I checked that cck checkboxes is not defining the form #required property so is not shown with the mandatory field sign, and neither validating.

With this cck optionwidget patch and when Drupal core was patched then the module checkbox_validate (http://drupal.org/project/checkbox_validate)
with all the existing patches for forms and even for cck checkboxes will end up as well.
On that last modules you can see some use cases when this required validation with on/off checkboxes is needed.

CommentFileSizeAuthor
cck_optionwidgets_required.patch601 bytesjcmarco

Comments

markus_petrux’s picture

Title: Checkbox required not defined » Checkbox required not defined for on/off widgets
Status: Needs review » Fixed

It should cause no harm, and there you have it when the core fix gets in.

Committed to CVS (CCK2 and CCK3 branches). Thanks.

jcmarco’s picture

Thank you

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.