ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentโ€ข3y agoโ€ข
4 replies
Harry

Default fields not populating when viewing resource

๐Ÿ‘‹
I've got a page for viewing a resource, whereby I'm using Tabs with TextInput's to display information. Some of the information is null, so I want to default it like so:

  TextInput::make('promo_code_used')->default('N/A'),
  TextInput::make('promo_code_used')->default('N/A'),


For some reason though, this just appears as an empy field rather than show's as N/A. Any thoughts why this might be? Is it because it's a View page so the fields are disabled?
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

Create action when viewing resource record
FilamentFFilament / โ“โ”Šhelp
3y ago
PAGE form field default not populating field
FilamentFFilament / โ“โ”Šhelp
6mo ago
default value on form select not populating
FilamentFFilament / โ“โ”Šhelp
3y ago
Prevent user from viewing a resource
FilamentFFilament / โ“โ”Šhelp
3y ago