© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Vp

Toggle column with confirmation

Can we show confirmation modal when table toggle is changed?

I want the confirmation to pop-up when I try to toggle column and based on that it should reflect the status

What I tried:
I thought this link https://filamentphp.com/docs/3.x/tables/columns/toggle#lifecycle-hooks should do the trick, but I am stucking here
My code:
use Filament\Actions\Action;

Tables\Columns\ToggleColumn::make('is_verified')
    ->beforeStateUpdated(function ($record, $state) {
        Action::make('confirm')
            ->requiresConfirmation();

        dd($record);
    }),
use Filament\Actions\Action;

Tables\Columns\ToggleColumn::make('is_verified')
    ->beforeStateUpdated(function ($record, $state) {
        Action::make('confirm')
            ->requiresConfirmation();

        dd($record);
    }),

It always shows
dd()
dd()
value instead of action, thanks in advance
Toggle column - Table Builder - Filament
Solution
I used all the action I can find and none of them are working, so I think it's not possible to open Confirmation/Action from toggle column
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Toggle-column
FilamentFFilament / ❓┊help
2y ago
TextInput Column Save with Confirmation
FilamentFFilament / ❓┊help
3y ago
Select Column Confirmation
FilamentFFilament / ❓┊help
3y ago
Toggle column issue.
FilamentFFilament / ❓┊help
3y ago