HTML_QuickForm - Required text field depending from another text field value
| From: | Stefano Tulini - Akensoft | Date: | Mon, 08 Jan 2007 12:04:22 +0000 |
| Subject: | HTML_QuickForm - Required text field depending from another text field value | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-26287@lists.php.net to get a copy of this message | ||
Hi, I have the following problem.
I have two text fields A and B.
A is optional.
B is required only if A is empty..
If A is filled, B is optonal.
How can I add a rule to require value in field B only when field A is empty?
Someone can help me?
Thanks
Stefano