© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Andy

Standalone action not hiding

I'm getting what feels like weird behaviour with an action. I'd like to conditionally hide the action but using
->hidden()
->hidden()
just disables it.

    public function testAction(): Action
    {
        return Action::make('test')
            ->hidden()
            ->label('Test Action')
            ->action(fn () => dd('TODO'));
    }
    public function testAction(): Action
    {
        return Action::make('test')
            ->hidden()
            ->label('Test Action')
            ->action(fn () => dd('TODO'));
    }
Screenshot_2023-12-12_at_09.29.18.png
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

action method not working on a standalone Action
FilamentFFilament / ❓┊help
3y ago
Action works in a Table, but not as standalone Action
FilamentFFilament / ❓┊help
2mo ago
unable to get Standalone action working
FilamentFFilament / ❓┊help
3y ago
Additional validations on the `action` method for Standalone action
FilamentFFilament / ❓┊help
3y ago