I have a form of (n) checkboxes that are generated at creation time. I'd like to set an error if none of the checkboxes are checked, but not any one of the checkboxes in particular.
There doesn't seem to be a good way to set an error except for setting an error on every checkbox.
Does anyone have a better way to tell the user not to send a blank form?
Drupal 6.
Thanks. -Don-
With form set error, you do not have to specify a field. Leave the first parameter null and it will display the message, but not highlight any fields. Make the error message clear about what they need to supply.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Don Pickerel Sent: Monday, April 16, 2012 2:51 PM To: support@drupal.org Subject: [support] general form errors
I have a form of (n) checkboxes that are generated at creation time. I'd
like to set an error if none of the checkboxes are checked, but not any one of the checkboxes in particular.
There doesn't seem to be a good way to set an error except for setting an error on every checkbox.
Does anyone have a better way to tell the user not to send a blank form?
Drupal 6.
Thanks. -Don-