© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
oks_voice123

ok simple request on table TextColumn

How can I for a table populate a colum(A) with the value of another column(B) from the same row if the cell/column A is empty ?
Placeholder or default doesn't permit to be dynamic
Sorry for this simple question but as newbie I'm still learning and sometimes I'm not so experienced to find the best approach / solution to implement
Many thanks
Solution
->state(fn(YourModel $record) => $record->column_a ?? $record->column_b)
->state(fn(YourModel $record) => $record->column_a ?? $record->column_b)

?
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

Table TextColumn URL() Styles
FilamentFFilament / ❓┊help
15mo ago
Need help on TextColumn
FilamentFFilament / ❓┊help
13mo ago
Nullable PHP Enum in Table TextColumn Oddity
FilamentFFilament / ❓┊help
3y ago
TextColumn depending on database value....
FilamentFFilament / ❓┊help
4mo ago