Karmendra
Karmendra
FFilament
Created by LancelotGamer on 3/24/2023 in #❓┊help
How can I add a password confirmation to any action
Looks like community here is not very active. Anyone please share your knowledge, thanks.
13 replies
FFilament
Created by LancelotGamer on 3/24/2023 in #❓┊help
How can I add a password confirmation to any action
Hi I am trying to use this Trick in Filament V3, but unable to understand how to call this, I have two situations where I need password confirmation. 1. I have a ViewPage in a Resource and when User Clicks on View Action in Table. 2. I have a Modal View (no redirect, but a pop up on a page), I want to Password confirmation before the User can see the Modals content. in Resource Table function for modal view I am trying to use it as following, the password pop-up comes but the View Modal or Page action doesn't happen
->actions([
Tables\Actions\ViewAction::make(),
\App\Filament\Actions\PasswordAction::make('view')->action(static function (): void {})->icon('heroicon-m-eye'),
Tables\Actions\EditAction::make(),
])
->actions([
Tables\Actions\ViewAction::make(),
\App\Filament\Actions\PasswordAction::make('view')->action(static function (): void {})->icon('heroicon-m-eye'),
Tables\Actions\EditAction::make(),
])
13 replies