F
Filamentabrardev99

Dynamic Form Validations

Hi, We stored different validations in database. How can we dynamically apply Filament field validations based on selected DB record. For example
->acceptedFileTypes(fn(Forms\Get $get) => MediaConfiguration::where('collection_name', $get('purpose'))->first()?->mime_types ?? ['image/*'])
->acceptedFileTypes(fn(Forms\Get $get) => MediaConfiguration::where('collection_name', $get('purpose'))->first()?->mime_types ?? ['image/*'])
In above example, I want to set File mime type, based on another selected Media Configuration. But this is not working. Is there any workaround?