Re: Quickform: Group Radiobutton Client side rule
| From: | Alexey Borzov | Date: | Mon, 14 Mar 2005 22:00:23 +0000 |
| Subject: | Re: Quickform: Group Radiobutton Client side rule | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18038@lists.php.net to get a copy of this message | ||
Hi,
Aaron Wormus wrote:
Here is what is not working, I don't know why. If anyone can show me the correct way to do something like this I would be greatful.
$agree[] = HTML_QuickForm::createElement('radio', 'yes', 'I Agree', null, 1);
$agree[] = HTML_QuickForm::createElement('radio', 'yes', 'I Disagree', null, 0);
$this->addGroup($agree, 'agree', "", ' ');
$this->addGroupRule("agree",
'You must agree to the Terms of Use',
'nonzero', null, null, 'client');
This should be
$form->addGroupRule("agree",
'You must agree to the Terms of Use',
'nonzero', null, 1, 'client');