Re: [fw-general] Zend_Form select element always multi?

2008-03-07 Thread mrolli
gammamatrix wrote: > > I forgot to state in the last message: > > ->setIsArray(false) > > This is the key here to turn a field into a drop down select statement. > The default creates an array based name select input which leads to a > multi select input: > > ->setIsArray(false) >

Re: [fw-general] Zend_Form select element always multi?

2008-03-06 Thread mrolli
Jeffrey Sambells-2 wrote: > > The problem however is that for some reason it renders as a multi > select (with multiple="multiple"): > Same problem here: example1 $location_id = new Zend_Form_Element_Select('location_id'); $location_id->setLabel('ticket_locations')