rgeraads
rgeraads
FFilament
Created by rgeraads on 1/24/2025 in #❓┊help
Conditional requiresConfirmation ignored
I have a conditional requiresConfirmation, but it seems to be overruled by modalDescription. Even if I do requiresConfirmation(false) or remove it entirely, the confirmation pops up. The only way I can get it to work is by putting the condition in modalDescription, but that doesnt make sense for other users. Pseudo code:
Action::make()
->requiresConfirmation(fn (User $user) => $user->shouldShowConfirmation)
->modalDescription('foo')
Action::make()
->requiresConfirmation(fn (User $user) => $user->shouldShowConfirmation)
->modalDescription('foo')
requiresConfirmation is ignored if modalDescription is not null
64 replies