Re: HTML_QuickForm - heirselect

From: Date: Mon, 08 Aug 2005 15:19:28 +0000
Subject: Re: HTML_QuickForm - heirselect
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20323@lists.php.net to get a copy of this message
Hi, you can do it using an array instead of a string example : $data['name_of_hierselect_element'] = array(2, 4); $form->setDefaults($data) Julien 2005/8/8, Noel <noel.dacosta@magharl.co.uk>: > Hi there, > > I'm new to the list... I have a question regarding the element type > 'hierselect'. > I am able to set default values for the top hierarchy select box of the > group, (using <code> $form->setDefaults('groupName', > 'value');</code>) > > B U T > > How do I set default values for the second and third and nth select boxes? > > > > > Many thanks > Noel da Costa > > Lead Developer > Magnet Harlequin > www.magharl.co.uk > >

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