© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
5 replies
ChesterS

extraModalFooterActions not working

What I want to do is customise what happens in the 'Cancel' action of a modal, but I can't find a way to do this. Here is what I've tried so far

TextInput::make('foobar')
    ->required()
    ->suffixAction(\Filament\Forms\Components\Actions\Action::make('something')
        ->requiresConfirmation()
        ->modalCancelAction(fn (StaticAction $action) => $action->label('Close')
            ->action(function() {
                dd('Normal cacnel');
            })
        )
        ->extraModalFooterActions(fn(\Filament\Forms\Components\Actions\Action $action) => [
            StaticAction::make('cancel')
                ->button()
                ->action(function() {
                    dd('Cancel');
                }),
            $action->makeModalAction('cancel2')
                ->action(function () {
                    dd('I said cancel!');
                }),
            \Filament\Actions\Action::make('cancel3')
                ->action(function() {
                    dd('WTF is going on?');
                }),
        ])
        ->action(function () {
            dd('fuck right off');
        }),
    ),
TextInput::make('foobar')
    ->required()
    ->suffixAction(\Filament\Forms\Components\Actions\Action::make('something')
        ->requiresConfirmation()
        ->modalCancelAction(fn (StaticAction $action) => $action->label('Close')
            ->action(function() {
                dd('Normal cacnel');
            })
        )
        ->extraModalFooterActions(fn(\Filament\Forms\Components\Actions\Action $action) => [
            StaticAction::make('cancel')
                ->button()
                ->action(function() {
                    dd('Cancel');
                }),
            $action->makeModalAction('cancel2')
                ->action(function () {
                    dd('I said cancel!');
                }),
            \Filament\Actions\Action::make('cancel3')
                ->action(function() {
                    dd('WTF is going on?');
                }),
        ])
        ->action(function () {
            dd('fuck right off');
        }),
    ),

None of the above seems to work. Like, the actions are not even executed. I don't know what I'm missing here. Most of the code is boilerplate or taken directly from the docs.
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

extraModalFooterActions
FilamentFFilament / ❓┊help
10mo ago
extraModalFooterActions -> Select
FilamentFFilament / ❓┊help
15mo ago
extraModalFooterActions, retrieving post $data?
FilamentFFilament / ❓┊help
2y ago
extraModalFooterActions in EditAction modal
FilamentFFilament / ❓┊help
2y ago