© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
PANC

Filament Table column hidden with condition

I have this two columns:
TextColumn::make('column_one')
->sortable(),
TextColumn::make('column_two')
->sortable()
->searchable(),

If column_one equals to 1, then hide column_one and show column_two
If column_one different from 1, then hide column_two
Solution
You should use this https://filamentphp.com/docs/3.x/tables/columns/getting-started#calculated-state

You can't show/hide columns by row values
Getting started - Table Builder - Filament
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

filament table hidden record null
FilamentFFilament / ❓┊help
2y ago
conditional table column
FilamentFFilament / ❓┊help
3y ago
Add condition if column value blank in table
FilamentFFilament / ❓┊help
17mo ago
Table column record parameter for visible & hidden methods
FilamentFFilament / ❓┊help
3y ago