Toggle afterStateUpdated call action
I would like when someone clicks the toggle, that a confirmation modal pop's up asking the user if he's sure that he wants to enable it. How can I do this?
How can I call an action using afterStateUpdated?
9 Replies
Maybe with an action in afterStateUpdated or something?
nah, you just add
->requiresConfirmation()
Require confirmation doesn't exist on a toggle, only on actions.
Somehow it should be possible to call an action from an

Ohhh my bad. I have to think about this one. I cant look it up rn but maybe later tonight
but i believe it should be possible
That would be awesome, I appreciate it!
So far I haven't found a way, bit it would be a nice feature (in case it doesn't exist of course)
😦 After doing a lot of experimenting, I couldnt find a way unfortunately
I might make a PR to support this nativaly from filament
Are you trying to do this in a form or in a table? Just curious.
In a form