QuickForm - Building Validation Rules

From: Date: Wed, 30 Jul 2003 23:51:18 +0000
Subject: QuickForm - Building Validation Rules
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6923@lists.php.net to get a copy of this message
Hi, Is it possible to build a rule for group such as if group[$x]->getSubmitValue() { group[$$x.'Expl']->setRequired() /* or similar*/ } Essentially I have a range of radio button and checkbox groups some of the elements of which have an associated explanation field that is required if the user decided to pick that specific choice. THese options are set in a reference table and the element groups are builtfrom these reference tables. I want to ensure that if the user selects specific options form the checkboxes (multiple), or radio buttons (single choice) they are required to enter an explanation. PS I hated KR formatting in 1983 and still do. -- Barry Steele <barry@hpfm.biz> hpfm

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