Cannot validate a MultiSelect field #6250
-
Description:I am trying to make a MultiSelect field required and I ended up using something like that:
I also tried to use 'in:Option A,Option B,Option C' but it is not working. I am casting the reason property to array as suggested in the documentation, but the validation message always returns "The reason field must be an array." Detailed steps to reproduce the issue on a fresh Nova installation:
even just using ->rules('required') is not working for MultiSelect field. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The value send on the request is array as |
Beta Was this translation helpful? Give feedback.
-
Ok I found a solution that works for me
|
Beta Was this translation helpful? Give feedback.
Ok I found a solution that works for me