Open Modal after/before Creating record
Hi there,
Is there a way to open a modal after or before a record is persisted in the database? For example, I'd like to trigger a custom modal either right before saving or immediately after the record is created/updated. Has anyone implemented something like this with Filament actions or hooks?
Solution:
Jump to solution
Leandro Ferreira (@leandrocfe)
π‘ Filament Tip: If you want to enhance the Create Form by adding a confirmation modal before submission, use the following code snippet π

X
4 Replies
Solution
Leandro Ferreira (@leandrocfe)
π‘ Filament Tip: If you want to enhance the Create Form by adding a confirmation modal before submission, use the following code snippet π

X
Nice one, thanks.
Is there a way to pass data to modal?
I think so.. try ty inject
array $data
or $livewire->data
Awesome! Thanks @LeandroFerreira