Re: QuickForm dependant validation
| From: | Damien Cros | Date: | Mon, 12 Dec 2005 17:04:51 +0000 |
| Subject: | Re: QuickForm dependant validation | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22209@lists.php.net to get a copy of this message | ||
Hi,
I was just looking for the same thing as Mark Steudel so I checked the formrule.php example but it does not cover client-side validation. I can't find any other example in HTML_QuickForm/docs.
I was wondering if I have to write the javascript part myself or if there's some existing example involving checkboxes and textfields.
thanks,
damien
On 9 déc. 05, at 00:29, Adam Ashley wrote:
Attachment: [application/pkcs7-signature] smime.p7s
On Thu, 2005-12-08 at 11:10 -0800, Mark Steudel wrote:I was hoping I could get a little help on doing validation that is dependant upon another element. Like a credit card form with a checkbox that says "address same as billing". If it is checked then I want it to enable all the rules lower down.Take a look at the formrule.php example that comes with HTML_QuickForm it covers doing exactly what you want. Adam Ashley Senior Developer Ilisys Web Hosting
Attachment: [application/pkcs7-signature] smime.p7s