I missed out some code in my controller
Now it is working with this code
Form
$groups = new Zend_Form_Element_Multiselect('group');
$groups ->setLabel('Groups:')
->setDecorators($this->elementDecorators)
Have you tried:
->setDefault( $sGroup )
?
On Fri, Oct 30, 2009 at 7:28 AM, ajitk15 wrote:
>
> Hi
>
> this using the Zend_Form_Element_Multiselect still i the same issue
> can any one help me out in this asap
>
>
> $groups = new Zend_Form_Element_Multiselect('group');
>
>
Hi
this using the Zend_Form_Element_Multiselect still i the same issue
can any one help me out in this asap
$groups = new Zend_Form_Element_Multiselect('group');
$groups ->setLabel('Groups:')
->setDecorators($this->elementDe
If you're using a regular select, the value you pass to setValue should be a
single value (not an array).
If you're using MultiSelect, then you need to pass in an array of values.
--
Hector
On Tue, Oct 27, 2009 at 8:41 AM, ajitk15 wrote:
>
> even i tried with Zend_Form_Element_Multiselect al
even i tried with Zend_Form_Element_Multiselect also
still the same issue.
drm-4 wrote:
>
> ajitk15 wrote:
>> $groups = new Zend_Form_Element_Select('group');
>>
>> $groups ->setLabel('Groups:')
>>->setAttrib('multiple
ajitk15 wrote:
$groups = new Zend_Form_Element_Select('group');
$groups ->setLabel('Groups:')
->setAttrib('multiple','multiple')
Hi, you should use Zend_Form_Element_Multiselect for t
Hi
i have a problem in Multiselect selected values. it should select 'My
Community for Friends'
this value, but it is not working.
$aGroups = Array ( [3] => My Community for Friends [4] => Electronics )
$sGroup = Array ( [0] => 3 )
$groups = new Zend_Form_Element_Select('group');
> Passing an array of values to setValue() should work.
Yeah, and it works just fine, thuogh I wasn't aware of that because I
had to check the HTML source to see it: Firefox for some reason
doesn't display the selection when it is under my .lc (localhost, for
development) TLD…
Thank you,
Ádám
-- Joó Ádám wrote
(on Friday, 20 February 2009, 07:08 PM +0100):
> How can I set the selected values in a multiselect element? I tried to
> call setValue() multiple times and also passing an array to it, but
> none of them worked.
Passing an array of values to setValue() should work. The values i
Hi,
How can I set the selected values in a multiselect element? I tried to
call setValue() multiple times and also passing an array to it, but
none of them worked.
Thanks,
Ádám
10 matches
Mail list logo