Re: QuickForm hierselect muiltiple choice problem
| From: | Helder Miguel Rodrigues | Date: | Wed, 02 Jun 2004 18:25:26 +0000 |
| Subject: | Re: QuickForm hierselect muiltiple choice problem | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12840@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
Hi! Helder Miguel Rodrigues wrote:Thanks in advance!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. I dont understand how can i do that?