Re: QuickForm hierselect muiltiple choice problem

From: Date: Wed, 02 Jun 2004 14:31:12 +0000
Subject: Re: QuickForm hierselect muiltiple choice problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12825@lists.php.net to get a copy of this message
Hi! Helder Miguel Rodrigues wrote:
Im trying tu use 2 selects, an I wanto to know if it is possible to implement multiple choice in the second select. I have done this: $hsfilerelatorioperm = &$form->addElement('hierselect', 'filerelatorioperm', array('Relatório:'), "size=6 MULTIPLE=true"); $hsfilerelatorioperm->setMainOptions($perms); $hsfilerelatorioperm->setSecOptions(array(array(), array(), array(), array(), $clientsInternet, $clientsInstitucional)); But second select never is populated and it gives me a JavaScript error in IE. If I get off MULTIPLE=true everything works fine! 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.

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