© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
4 replies
Yash

Prevent Modal from closing on submit.

On my view page i have action which is a modal (slideover) and after submit i do not want to close the modal. how to achieve this.
one way is to use extraModalFooterActions and disable the default action, but this is just a workaround and due to this the submit validation does not triggered.
i need the proper solution for this

Action::make('notes')
        ->slideOver()
        ->closeModalByClickingAway(false)
        ->form(function (\Filament\Actions\Action $action) {
            //INPUT AND FORM COMPONENTS
        })
        ->action(function (Action $action, $record, array $data) {
             //SAVING THE DATA
            //DO NOT WANT TO CLOSE THIS MODAL/SLIDEOVER
        })
Action::make('notes')
        ->slideOver()
        ->closeModalByClickingAway(false)
        ->form(function (\Filament\Actions\Action $action) {
            //INPUT AND FORM COMPONENTS
        })
        ->action(function (Action $action, $record, array $data) {
             //SAVING THE DATA
            //DO NOT WANT TO CLOSE THIS MODAL/SLIDEOVER
        })
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Prevent Modal Closing?
FilamentFFilament / ❓┊help
2y ago
How do i prevent an action modal from closing the modal on submit
FilamentFFilament / ❓┊help
2y ago
Is it possible to prevent a modal from closing on form submit?
FilamentFFilament / ❓┊help
3y ago
Prevent action modal from closing automatically
FilamentFFilament / ❓┊help
3y ago