RE: [PEAR] DB_DataObject/Formbuilder, make a crosslinks/xlinks (aka checkbox) field required
| From: | Jay Taylor | Date: | Tue, 17 Oct 2006 23:26:21 +0000 |
| Subject: | RE: [PEAR] DB_DataObject/Formbuilder, make a crosslinks/xlinks (aka checkbox) field required | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25491@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
> Nope, there's no built-in way to do this. What exactly do you
> want required? A specific crossLink checkbox or "at least 1"?
I am looking for an "at least 1" type of requirement.
> The first can probably be done with a call to addRule making
> that specific element 'required' (see the HTML code to find
> the element's name). The second could be done with a simple
> addFormRule().
This was the first thing I tried. Last night it didn't work, however.. I
just tried it again and it worked as advertised. THANK YOU Justin. You
rock!
Best Regards,
Jay
> -----Original Message-----
> From: Justin Patrin [mailto:papercrane@gmail.com]
> Sent: Tuesday, October 17, 2006 3:08 PM
> To: outtatime@gmail.com
> Cc: pear-general@lists.php.net
> Subject: Re: [PEAR] DB_DataObject/Formbuilder, make a
> crosslinks/xlinks (aka checkbox) field required
>
> On 10/17/06, Jay Taylor <outtatime@gmail.com> wrote:
> > Greetings,
> >
> > DBDO and DBDO_FB have been a godsend. However, I am not
> being asked
> > to make a crosslink (ie, checkbox field) into a required
> field, and as
> > far as I can tell there is no documented way of doing this.
> Justin, what am I missing?
> > ;)
> >
>
> Nope, there's no built-in way to do this. What exactly do you
> want required? A specific crossLink checkbox or "at least 1"?
> The first can probably be done with a call to addRule making
> that specific element 'required' (see the HTML code to find
> the element's name). The second could be done with a simple
> addFormRule().
>
> --
> Justin Patrin