© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2mo ago•
8 replies
Rawand Jabar

Table Header Action Confirmation not work

Actions4️⃣v4
basically I want to set the confirmation for this header table action but the confirmation not worked.
any help please ?
            ->headerActions([
                Action::make('create')
                    ->requiresConfirmation()
                    ->label('Create User')
                    ->icon('heroicon-o-plus-circle')
                    ->color('success')
                    ->form([
                        TextInput::make('name')
                            ->label('Full Name')
                            ->placeholder('John Doe')
                            ->required()
                            ->maxLength(255)
                            ->prefixIcon('heroicon-o-user')
                            ->columnSpanFull(),
                       
                    ])
                    ->action(function (array $data) {
                        User::create([
                            'name' => $data['name'],
                           
                        ]);
                    })
                    ->cancelParentActions()
                    ->modalHeading('Create User')
                    ->modalDescription('Create a new user')
                    ->modalSubmitActionLabel('Create User')
                    ->modalCancelActionLabel('Cancel')
                    ->modalWidth('md'),
            ->headerActions([
                Action::make('create')
                    ->requiresConfirmation()
                    ->label('Create User')
                    ->icon('heroicon-o-plus-circle')
                    ->color('success')
                    ->form([
                        TextInput::make('name')
                            ->label('Full Name')
                            ->placeholder('John Doe')
                            ->required()
                            ->maxLength(255)
                            ->prefixIcon('heroicon-o-user')
                            ->columnSpanFull(),
                       
                    ])
                    ->action(function (array $data) {
                        User::create([
                            'name' => $data['name'],
                           
                        ]);
                    })
                    ->cancelParentActions()
                    ->modalHeading('Create User')
                    ->modalDescription('Create a new user')
                    ->modalSubmitActionLabel('Create User')
                    ->modalCancelActionLabel('Cancel')
                    ->modalWidth('md'),
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

Create table header action question...
FilamentFFilament / ❓┊help
3y ago
Header Action filter not applying to Table Widget
FilamentFFilament / ❓┊help
16mo ago
Table action with form - confirmation before submit
FilamentFFilament / ❓┊help
13mo ago
add action to group header table
FilamentFFilament / ❓┊help
10mo ago