Re: [QuickForm] require rule on one radio button
| From: | Justin Patrin | Date: | Fri, 02 Dec 2005 04:33:49 +0000 |
| Subject: | Re: [QuickForm] require rule on one radio button | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22130@lists.php.net to get a copy of this message | ||
On 12/1/05, Mark Steudel <mark@netriver.net> wrote:
> I have one radio button that I wanted the user to check for an agreement,
> and when I set the following rule on it, even if I chek it it still gives me
> the required javascript. Did I set the rule incorrectly?
>
> $artist_app->addElement('radio', 'agree', 'I agree', NULL,
> 'agree' );
> $artist_app->addRule('agree', 'You must agree to terms',
> 'required', null,
> 'client');
>
Perhaps a checkbox would be more appropriate?
--
Justin Patrin