FilamentF
Filament3y ago
3 replies
bahamagician

requiredIf() validation isn't working for File Upload component

I'm having a problem where the requiredIf validation doesn't work when I use it on a File Upload component. See code below. Is there a way around this?

Forms\Components\FileUpload::make('delivery_scan')
  ->requiredIf('delivery_type', 'Boat')
  ->columnSpan([
    'md' => 2,
  ]),
Was this page helpful?