© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
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
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Conditional Table Row Actions
F
Filament / ❓┊help
3y ago
Conditional actions on table columns
F
Filament / ❓┊help
11mo ago
Conditional Fields
F
Filament / ❓┊help
2y ago
Conditional plugin
F
Filament / ❓┊help
2y ago