F
Filamentβ€’2y ago
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?
4 Replies
Dennis Koch
Dennis Kochβ€’2y ago
Defaults are only for Create
Harry
HarryOPβ€’2y ago
Oh RIP sad times, cheers for letting me know though. Do you happen to have any suggestions for doing what I'm trying to do?
Harry
HarryOPβ€’2y ago
Ahhh excellent, thank you!
Want results from more Discord servers?
Add your server