Requiredif multi select is empty
Dear all, if somebody know how to validate field with required if another multiple select is empty. I'm try few ways but nothnig works..
->requiredIf('job_factors', [], true)
->requiredIf('job_factors', '[]', true)
->requiredIf('job_factors', null, true)
Solution:Jump to solution
This might be what you are after?
https://filamentphp.com/docs/3.x/forms/advanced#conditionally-making-a-field-required...
2 Replies
Solution
This might be what you are after?
https://filamentphp.com/docs/3.x/forms/advanced#conditionally-making-a-field-required
Thanks bro, this is also one possibility of achieving the result