Validation rule required on multiple select field always fails |
My bad, I meant 'rules' => 'required' in the example PHP code (I edited my initial question).
Any how I found the solution to my problem, I had to change the name of the field in the rules. So instead of usings 'groups' Code: $rules = [ is used 'groups[]' PHP Code: $rules = [ |
Messages In This Thread |
Validation rule required on multiple select field always fails - by Nikos_Kontis - 06-18-2016, 03:11 AM
RE: Validation rule required on multiple select field always fails - by cartalot - 06-18-2016, 01:35 PM
RE: Validation rule required on multiple select field always fails - by Nikos_Kontis - 06-18-2016, 03:00 PM
|