Re: DB_DataObject/Formbuilder, make a crosslinks/xlinks (aka checkbox) field required
| From: | Justin Patrin | Date: | Tue, 17 Oct 2006 21:08:06 +0000 |
| Subject: | Re: 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-25490@lists.php.net to get a copy of this message | ||
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