Re: [fw-general] Multiselect selected values

2009-10-30 Thread ajitk15
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)

Re: [fw-general] Multiselect selected values

2009-10-30 Thread A.J. Brown
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'); > >                      

Re: [fw-general] Multiselect selected values

2009-10-30 Thread ajitk15
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

Re: [fw-general] Multiselect selected values

2009-10-28 Thread Hector Virgen
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

Re: [fw-general] Multiselect selected values

2009-10-27 Thread ajitk15
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

Re: [fw-general] Multiselect selected values

2009-10-27 Thread drm
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

[fw-general] Multiselect selected values

2009-10-27 Thread ajitk15
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');

Re: [fw-general] Multiselect selected values

2009-02-20 Thread Joó Ádám
> 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

Re: [fw-general] Multiselect selected values

2009-02-20 Thread Matthew Weier O'Phinney
-- 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

[fw-general] Multiselect selected values

2009-02-20 Thread Joó Ádám
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