Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’9mo agoβ€’
6 replies
dusano

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
before creating
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 πŸ‘‡
Preview image

X

β€’

6/10/24, 2:15 PM

Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel β€’ Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Modal Open before validation
FilamentFFilament / β“β”Šhelp
3y ago
recordUrl() to open Modal
FilamentFFilament / β“β”Šhelp
2y ago
Open modal before create action
FilamentFFilament / β“β”Šhelp
3y ago
Confirmation Alert Before Creating a Record
FilamentFFilament / β“β”Šhelp
3y ago