Re: QuickForm hierselect muiltiple choice problem

From: Date: Wed, 02 Jun 2004 18:49:59 +0000
Subject: Re: QuickForm hierselect muiltiple choice problem
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12843@lists.php.net to get a copy of this message
Alexey Borzov wrote:
Hi! Helder Miguel Rodrigues wrote:
There is any solution to be possible to have multiple selections in the second select?
I think you set the 'multiple' attribute for both selects this way. Get the hierselect's elements by using getElements() and update the attributes only of the second one.
I dont understand how can i do that?
$foo =& $form->addElement('hierselect', ...); $els =& $foo->getElements(); $els[1]->updateAttributes(array('size' => 6, 'multiple' => 'multiple')); I didn't test this, but it *may* work... It didnt work! :(
Any another suggestion? Another type of implementation? Thanks

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