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:
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
Defaults are only for
Create
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?
Yes. Check the docs:
https://filamentphp.com/docs/2.x/admin/resources/viewing-records#customizing-data-before-filling-the-form
Filament
Viewing records - Resources - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
Ahhh excellent, thank you!