© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Jo

Confirmation modal for actions other than delete?

Consider a situation where users of our panel have to "spend" a point/credit in order to create a new post. In this case, I can modify the example from the docs for a delete confirmation to be like this:

Action::make('create')
    ->action(fn (Post $record) => $record->create())
    ->requiresConfirmation()
Action::make('create')
    ->action(fn (Post $record) => $record->create())
    ->requiresConfirmation()


The problem with this, though, is that the confirmation modal appears before form validation has happened. I'd like to switch this around so that the form validation happens first and then the confirmation modal only first if the form passes validation.
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

Delete Confirmation
FilamentFFilament / ❓┊help
3y ago
Checkbox Confirmation Modal
FilamentFFilament / ❓┊help
13mo ago
Custom confirmation modal
FilamentFFilament / ❓┊help
2y ago
Delete File Confirmation
FilamentFFilament / ❓┊help
4mo ago