© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
13 replies
fpolli

Hide table column based on value of another column

How can I do this? In ->hidden(), I tried a closure passing the $record and accessing the attribute, and I tried passing Get and using $get('name'), but the first way passed null to the closure and the second told me "Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization"
Solution
hide a table column based on a form might be possible.. but you cant hide a column per record because a table holds multiple records.. thats impossible for any table
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

Hide textColumn based of the value of another column
FilamentFFilament / ❓┊help
3y ago
change color of a column value based on another column value
FilamentFFilament / ❓┊help
3y ago
change color of money based on another column value
FilamentFFilament / ❓┊help
3y ago
Show/Hide Table Columns based on getTabs()
FilamentFFilament / ❓┊help
3y ago