© 2026 Hedgehog Software, LLC

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

Conditional Actions

Is it possible to create actions on a table that are only shown in certain conditions? I'm not talking about authentication based conditions, but rather actions like "Turn Off" that are only visible when the record's state is "On"
Solution
You can use
->disabled(fn($record):bool => $record->state === 'On')
->disabled(fn($record):bool => $record->state === 'On')
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

Conditional Table Row Actions
FilamentFFilament / ❓┊help
3y ago
Conditional actions on table columns
FilamentFFilament / ❓┊help
11mo ago
Conditional Fields
FilamentFFilament / ❓┊help
2y ago
Conditional plugin
FilamentFFilament / ❓┊help
2y ago