F
Filament16mo ago
urbycoz

Placeholder text does not appear for NULL values

In this infolist I've got two fields: TextEntry::make('name')->placeholder('Not Completed'), TextEntry::make('gender')->placeholder('Not Completed') When the varchar name is set as EMPTY in the postgresql DB then the placeholder appears ok. However when the enum gender is set as NULL in the DB the placeholder does not appear.
2 Replies
toeknee
toeknee16mo ago
->nullable() ?
urbycoz
urbycozOP16mo ago
Make the field nullable in the database?

Did you find this page helpful?