© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
chrispage1

Custom modal actions with multiple custom buttons

Hi,

I'm creating a modal that has two actions in the footer, replacing the default submit and cancel (see attached).

My logic looks something like the below:

 ->modalFooterActions([
    Action::make('approve')
        ->color('success')
        ->icon('heroicon-o-check')
        ->cancelParentActions()
        ->action(function (): void {

            dd('Here');
            $record->approve();

            Notification::make()
                ->success()
                ->title($record->full_name . ' has been approved');

        }),
 ->modalFooterActions([
    Action::make('approve')
        ->color('success')
        ->icon('heroicon-o-check')
        ->cancelParentActions()
        ->action(function (): void {

            dd('Here');
            $record->approve();

            Notification::make()
                ->success()
                ->title($record->full_name . ' has been approved');

        }),


The problem is I want to achieve this look and feel (modal UI with approve/reject buttons), but I can't gain access to the form data (to see whether
email
email
is checked) and it doesn't seem to be a simple process.

Does anyone have any ideas on how I can easily achieve this?

Thanks!
image.png
image.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

Modal with dynamic actions
FilamentFFilament / ❓┊help
17mo ago
Dynamic actions with modal
FilamentFFilament / ❓┊help
2y ago
Modal Actions
FilamentFFilament / ❓┊help
3y ago
Multiple submit buttons in Action's modal
FilamentFFilament / ❓┊help
3y ago