[html-formfu] Contraint: AtLeastOne

Carl Franks fireartist at gmail.com
Tue Jan 22 14:32:41 GMT 2008


On 22/01/2008, Moritz Onken <onken at houseofdesign.de> wrote:
> Hi,
>
> I'm looking for a contraint which checks if at least one of many
> checkboxes is checked.
> I couldn't find anything which fits at http://search.cpan.org/~cfranks/HTML-FormFu-0.02003/

Is this multiple checkboxes with the same name?
Have you tried the Required constraint? I would expect that to work for this.

For fields with different names, Constraint::MinMaxFields (min => 1) would do.

Cheers,
Carl



More information about the HTML-FormFu mailing list