© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•9mo ago•
6 replies
Asmit

Please help, Record not resolved in visible() method of a SelectColumn

I’m trying to conditionally show a column based on the current record like this:
SelectColumn::make('car_color')
    ->label('Colors')
    ->options(CarColors::class)
    ->sortable()
    ->visible(function (Car $record) {
        dd($record);
    }),
SelectColumn::make('car_color')
    ->label('Colors')
    ->options(CarColors::class)
    ->sortable()
    ->visible(function (Car $record) {
        dd($record);
    }),

But the dd($record) inside the visible() callback never gets triggered, and it seems like the $record is not being resolved at all.

Is visible() supposed to have access to the record for SelectColumn, or is it evaluated globally (i.e., not per record)?

Would love some clarification on this. Thanks!
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

How to access $record in a ->visible() method?
FilamentFFilament / ❓┊help
15mo ago
$record is null in selectColumn
FilamentFFilament / ❓┊help
3y ago
Select method [resolved]
FilamentFFilament / ❓┊help
3y ago
SelectColumn give options based on record
FilamentFFilament / ❓┊help
3y ago