© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
JJSanders

TextEntry when value is null

                        TextEntry::make('strap')
                            ->columnSpanFull()
                            ->getStateUsing(function (Product $record) {
                                ray($record);
                                return $record->strap === 1 ? 'Ja' : 'Nee';
                            })
                        TextEntry::make('strap')
                            ->columnSpanFull()
                            ->getStateUsing(function (Product $record) {
                                ray($record);
                                return $record->strap === 1 ? 'Ja' : 'Nee';
                            })

Why doesn't this work when the value of strap is null?
Solution
It seems to work now. Don't know why it wasn't working before
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

Showing icon in Infolist TextEntry when the value is null
FilamentFFilament / ❓┊help
4mo ago
Dynamic value in infoList TextEntry
FilamentFFilament / ❓┊help
3y ago
Beginner form question - Field value is 'null'
FilamentFFilament / ❓┊help
2y ago
DatePicker value if DB field is null
FilamentFFilament / ❓┊help
3y ago