© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
14 replies
jals65

Problems with an action.

Hi, I made a component with filament table, and i'm trying to add a custom action.

protected function getTableActions(): array
    {
        return [
            Action::make('Promote to baseline')
                ->form([
                    TextInput::make('name')->required()
                ])
                ->action(function ($record, $data) {
                    app(VisualTestsServiceInterface::class)->promoteToBaseline($record, $data->name);
                })
                ->icon('heroicon-o-cloud-upload')
                ->requiresConfirmation(),
        ];
    }
protected function getTableActions(): array
    {
        return [
            Action::make('Promote to baseline')
                ->form([
                    TextInput::make('name')->required()
                ])
                ->action(function ($record, $data) {
                    app(VisualTestsServiceInterface::class)->promoteToBaseline($record, $data->name);
                })
                ->icon('heroicon-o-cloud-upload')
                ->requiresConfirmation(),
        ];
    }


The problem is when I click the button, it don't shows the modal with the form, and it doesn't do anything.
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

Problems using Repeater in an action
FilamentFFilament / ❓┊help
12mo ago
Import Action Problems
FilamentFFilament / ❓┊help
3y ago
Form actions must be an instance of Filament\Actions\Action, or Filament\Actions\ActionGroup.
FilamentFFilament / ❓┊help
3y ago
Problems with SpatieMediaLibraryFileUpload on a modal action.
FilamentFFilament / ❓┊help
3y ago