© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Leander

Action not working with requiresConfirmation()

Hello, I created a Livewire Component which implements HasForms and HasActions. I made a function "deleteAction" it works just fine but when adding
requiresConfirmation()
requiresConfirmation()
, I get the Modal but when pressing "confirm" nothing happens. I am pretty new to Filament and PHP in general. Here is the function code:
public function deleteAction(): Action
    {
        return Action::make('delete')
            ->action(function() {
                
                error_log("TEST");
                //Diagram::where('id', $this->diagram_id)->first()->delete();
            })
            ->requiresConfirmation();
    }
}
public function deleteAction(): Action
    {
        return Action::make('delete')
            ->action(function() {
                
                error_log("TEST");
                //Diagram::where('id', $this->diagram_id)->first()->delete();
            })
            ->requiresConfirmation();
    }
}
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

requiresConfirmation not working
FilamentFFilament / ❓┊help
3y ago
Test an Action with `requiresConfirmation()`
FilamentFFilament / ❓┊help
2y ago
Secondary Modal Submit Action with RequiresConfirmation
FilamentFFilament / ❓┊help
13mo ago
requiresConfirmation not working on actions
FilamentFFilament / ❓┊help
3y ago