F
Filament14mo ago
Noxo

Submit - requiresConfirmation

Do you know why requiresConfirmation doesn’t work with submit action? I override the getCreateFormAction method on create page and add requiresConfirmation but no confirmation on submitting 🤷‍♂️
protected function getCreateFormAction(): Action
{
return Action::make('create')
->label(__('filament-panels::resources/pages/create-record.form.actions.create.label'))
->requiresConfirmation()
->submit('create')
->keyBindings(['mod+s']);
}
protected function getCreateFormAction(): Action
{
return Action::make('create')
->label(__('filament-panels::resources/pages/create-record.form.actions.create.label'))
->requiresConfirmation()
->submit('create')
->keyBindings(['mod+s']);
}
1 Reply
Noxo
NoxoOP14mo ago
requiresConfirmation does not work with submit or does something else need to be configured?
Want results from more Discord servers?
Add your server