Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
the input-field from radio-buttons or from normal cck-text-fields get an error-class when the field is required and when the user will save the form without fill-out this field(s).
The problem is - by required checkboxes this error-class will not be set.
Has anyone a short fix for this problem?
Thank you and Regards
Matthias
Comments
Comment #1
mortona2k CreditAttribution: mortona2k commentedI have the same problem, and I'd really like to find a solution. I think this module is a great candidate, but I don't know what to do, since the core field validation code isn't working as expected.
Comment #2
Berliner-dupe CreditAttribution: Berliner-dupe commentedHi Mortana42,
i found a solution.
With this code you can set an error-class to the label from checkbox - if checkbox is required and the user will save the form without fill-out the checkbox..
http://drupal.org/node/259292#comment-4817446