Codiac wrote
> 
>> > If so, why do I get the validation error message? My values of en/nl
>> > are added through
>> > $form->getElement('language')->setMultiOptions($languages),
>> > where $languages is an array. Where does the stack get created?
> 

I had this problem, and a quick google showed others had too, more recently
than 4 years ago.
It only happened when, for architectural reasons, I set the options for the
select element in the controller, rather than in the custom form class.
I didn't really want to disable the validator, but I could see the way I'd
set the code up, there was no way it could tell what my options were.
Shifting the code that set the options to before the form validation was
called ( by $form->isValid )
solved the problem without having to disable the validator.


--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Zend-Form-select-element-validation-error-after-changes-in-revision-10523-tp652374p4655780.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to