We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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 ?



5.7k

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



5.7k

It's BUG! :'(



85.5k

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



5.7k
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!