[support] general form errors

Metzler, David metzlerd at evergreen.edu
Mon Apr 16 22:02:45 UTC 2012


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 at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Don Pickerel
Sent: Monday, April 16, 2012 2:51 PM
To: support at 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-

-- 
[ Drupal support list | http://lists.drupal.org/ ]


More information about the support mailing list