FilamentF
Filament3y 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']);
}
Was this page helpful?