add confirmation to submit / call requiresConfirmation() on StaticAction

Is there any way to show a confirmation modal on submit of any form modal form? i have a custom bulk action and i want the submit button to show a confirmation prompt.
1 Reply
Charles
CharlesOP3w ago
My workaround was to add the submit action to the form but then i can't retrieve the selected records
Filament\Forms\Components\Actions::make([
Filament\Forms\Components\Actions\Action::make('submit')
->requiresConfirmation()
->action(function(){
//submit here
})
])
Filament\Forms\Components\Actions::make([
Filament\Forms\Components\Actions\Action::make('submit')
->requiresConfirmation()
->action(function(){
//submit here
})
])

Did you find this page helpful?