© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
2 replies
ChrisMerlin

Should visible & hidden work on Custom Column?

I tried to use visible & hidden in my Custom Column, but it throws an error saying that $record is null.

DatePickerColumn::make('date_delayed_to')
  ->label('Delayed To')
  ->visible(fn(Model $record) => $record->status_id == OrderStatus::DELAYED)
DatePickerColumn::make('date_delayed_to')
  ->label('Delayed To')
  ->visible(fn(Model $record) => $record->status_id == OrderStatus::DELAYED)


For now I will put the logit in the PHP Component class or the view file directly, but I was hoping to make the column more abstract/reusable.
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

Hidden Column on $record
FilamentFFilament / ❓┊help
3y ago
Table column record parameter for visible & hidden methods
FilamentFFilament / ❓┊help
3y ago
NavigationItem visible and Hidden do not work
FilamentFFilament / ❓┊help
3y ago
Role in hidden/visible
FilamentFFilament / ❓┊help
2y ago