F
Filament7mo ago
Abrar

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?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server