QuickForm - Conditional Validation?

From: Date: Sat, 08 Oct 2005 03:29:52 +0000
Subject: QuickForm - Conditional Validation?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21276@lists.php.net to get a copy of this message
I have the following group: $elements[0] = &HTML_QuickForm::createElement('select', 'status', 'Status:', $list); $elements[1] = &HTML_QuickForm::createElement('text', 'value', 'Value:'); $form->addGroup($elements, 'double', 'Double Trouble', ' '); Is it possible to validate 'value' only if 'status' has been selected (i.e. - not empty)?

« previous php.pear.general (#21276) next »