Quickform: Group Radiobutton Client side rule
| From: | Aaron Wormus | Date: | Mon, 14 Mar 2005 19:48:31 +0000 |
| Subject: | Quickform: Group Radiobutton Client side rule | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18029@lists.php.net to get a copy of this message | ||
It looks like it's quickform day today... so I'll throw this one into the pot to see if anyone can find a solution.
I have a Terms of Use and I have a radio button group for "I Accept" and "I don't Accept", you can select one or the other. I want to be able to do this on the Client side.
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');
Aaron