5 Mar 04:02
Re: [FormBuilder] requiring any of several fields
From: Nate Wiger <nwiger <at> gmail.com>
Subject: Re: [FormBuilder] requiring any of several fields
Newsgroups: gmane.comp.lang.perl.modules.formbuilder
Date: 2007-03-05 03:02:48 GMT
Subject: Re: [FormBuilder] requiring any of several fields
Newsgroups: gmane.comp.lang.perl.modules.formbuilder
Date: 2007-03-05 03:02:48 GMT
On 3/4/07, Ryan Tate <lists <at> ryantate.com> wrote: > On 3/3/07, Nate Wiger <nwiger <at> gmail.com> wrote: > > Have you tried using the FormBuilder Data::FormValidator support? > > No, I had not! Thanks for the pointer. I see now this case (requiring > any one of several fields) is cited specifically in the docs, sorry > for missing it. > > So if I pass a D::FV obj as the validate argument to > CGI::FormBuilder->new, will the additional validation I set up for > various fields still work? ie can I still do > $form->field(name=>'email',required=>1,validate=>'EMAIL'); > ? Or do I have to do everything through the D::FV object? You have to use the D::FV object for everything, but FB does bridge the gap by automatically detecting invalid fields/etc. So you can set messages, but not validations thru field() -Nate _______________________________________________ FBusers mailing list FBusers <at> formbuilder.org http://www.formbuilder.org/mailman/listinfo/fbusers
RSS Feed