Re: optional rule quick_form
| From: | Justin Patrin | Date: | Thu, 11 Aug 2005 16:35:52 +0000 |
| Subject: | Re: optional rule quick_form | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20381@lists.php.net to get a copy of this message | ||
On 8/11/05, Uroš Gruber <uros.gruber@sir-mag.com> wrote:
> Hi!
>
> I have one checkbox. I checkbox is checked I show additional fields
> (just set visiblity to true). But some of that fields are required only
> if this checkbox is checked. Is this possible with quick_form. I try
> myself with grouping but without any luck.
>
Use addFormRule with a callback.
--
Justin Patrin