© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago
Panda

Updating record via modal footer action

I have a simple resource and showing details in a modal using Info-list builder. I've added custom action in footer of the model (as shown in image) and want to update the record when the action is triggered. For this I've added the
action
action
method on custom action but when I click on the button, it shows a loading spinner in button and then nothing happens the record is not updated. Following is my code any help would be much appreciated.

public static function table(Table $table): Table
{
    return $table
        ->columns([/* ... */])
        ->filters([ /* ... */ ])
        ->actions([
            Tables\Actions\ViewAction::make()
                ->modalFooterActions([
                    Action::make('close_modal')
                        ->label(fn () => __('filament-actions::modal.actions.cancel.label'))
                        ->close()
                        ->color('gray'),

                    // 
                    Action::make('resolve')
                        ->label('Mark Resolved')
                        ->visible(fn (ContentReport $record) => !$record->resolved)
                        // It was $record->update(['resolved' => true]) but even the
                        // `dd` function is not being called
                        ->action(fn (ContentReport $record) => dd($record))
                        ->color('success'),
                ]),
        ]);
}
public static function table(Table $table): Table
{
    return $table
        ->columns([/* ... */])
        ->filters([ /* ... */ ])
        ->actions([
            Tables\Actions\ViewAction::make()
                ->modalFooterActions([
                    Action::make('close_modal')
                        ->label(fn () => __('filament-actions::modal.actions.cancel.label'))
                        ->close()
                        ->color('gray'),

                    // 
                    Action::make('resolve')
                        ->label('Mark Resolved')
                        ->visible(fn (ContentReport $record) => !$record->resolved)
                        // It was $record->update(['resolved' => true]) but even the
                        // `dd` function is not being called
                        ->action(fn (ContentReport $record) => dd($record))
                        ->color('success'),
                ]),
        ]);
}
Screenshot_2023-11-25_202630.png
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

ActionGroup in modal footer
FilamentFFilament / ❓┊help
15mo ago
How to hide action modal footer actions?
FilamentFFilament / ❓┊help
2y ago
Modal Action with Wizard, add additional Footer Actions
FilamentFFilament / ❓┊help
11mo ago
Modal footer actions alignment
FilamentFFilament / ❓┊help
2y ago