Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Validate Multiple Select

Hi,

I have a multiple select element in a form, but when i try isValid() method of form, it always return false, because of [ ] added at the end of element name!

Any solution ?



2.3k

Is it Bug ? how can I ask Phalcon developer team?



2.3k

It's BUG! :'(



64.3k

you can try by making validation in your model, at least this is how i do it and its doable.



2.3k
edited Aug '16

Finally, I found a temporary solution!

Overwrite isValid () method of Phalcon Form! Check element type, if it is Select & Multiple is true, then validate it!