Triggering the create modal of a resource on a custom dashboard widget (blade file)

Hi guys. I'm using the create (and edit) modal in one of my resources. Works like expected. Now, I have a custom widget on my dashboard for this resource and I want users to be able to create a new record right from a model on the dashboard. Is there any way I can trigger the create modal, that already exists within the resource, from the dashboard? Found a way to trigger modals from a blade view, but they were all custom modals, not the built in create modal. Thanks!
Solution:
Rubber duck again: found info via Filament Daily about default action. If you use the route to the index of the resource, and pass the name of the action as a query param 'action', it'll be triggered πŸ™‚ https://www.youtube.com/watch?v=B0kO941vh7w...
Filament Daily
YouTube
Filament: Auto-Open Modal on Page with Default Action
A recently found undocumented Filament feature of $defaultAction. Original tweet: https://x.com/archilex/status/1809431172092477843 More Filament examples on our website: https://filamentexamples.com
Jump to solution
1 Reply
Solution
Bart - EffectConnect
Bart - EffectConnectβ€’3mo ago
Rubber duck again: found info via Filament Daily about default action. If you use the route to the index of the resource, and pass the name of the action as a query param 'action', it'll be triggered πŸ™‚ https://www.youtube.com/watch?v=B0kO941vh7w
Filament Daily
YouTube
Filament: Auto-Open Modal on Page with Default Action
A recently found undocumented Filament feature of $defaultAction. Original tweet: https://x.com/archilex/status/1809431172092477843 More Filament examples on our website: https://filamentexamples.com
Want results from more Discord servers?
Add your server