[html-formfu] Contraint: AtLeastOne

Moritz Onken onken at houseofdesign.de
Tue Jan 22 14:40:58 GMT 2008


Thanks,

exactly what I was looking for!

Am 22.01.2008 um 15:32 schrieb Carl Franks:

> 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
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.rawmode.org
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu




More information about the HTML-FormFu mailing list