Re: HTML_QuickForm - Required text field depending from another text field value
| From: | arnaud sellenet | Date: | Mon, 08 Jan 2007 12:09:44 +0000 |
| Subject: | Re: HTML_QuickForm - Required text field depending from another text field value | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26288@lists.php.net to get a copy of this message | ||
Hi Stefano,
HTML_QuickForm::addFormRule($callback) is made for this
Le 8 janv. 07 à 13:04, Stefano Tulini - Akensoft a écrit :
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 --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php