[QuckiForm] Hierselect

From: Date: Thu, 09 Nov 2006 03:32:53 +0000
Subject: [QuckiForm] Hierselect
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-44873@lists.php.net to get a copy of this message
Hi Is it possible within a hierselect to state that if a category does not have a child then it can default to an open text input box insetad of a blank menu. $sel =& $form->addElement('hierselect', 'category', 'Category', null, ' - '); $mainOptions = array('Shortcode'=>'Shortcode', 'Numeric'=>'Numeric', 'Alpha'=>'Alpha'); $secOptions = array('Shortcode' => array('80508' => '80508'), 'Numeric' => array(1 => 'Romance')); $sel->setOptions(array($mainOptions, $secOptions)); So in the above example I would like Alpha to be a blank input, basically a free field to enter whatever. Ian

« previous php.pear.dev (#44873) next »