enum value in Forms\Components\Select
My enum labels shows both as Select element value and label.
Using Filament docs example here as a base.
It produces:
I'd like to have:
How to "fix" this?
6 Replies
Thank you for reply.
Yes i made this example based on Filament docs about Enums (my 2nd sentence in original post).
So any idea why it is not working as i expect and docs say?
So i have to double my Enums with separate labels? I was really trying to avoid that..
Thank you!
You really shouldn't use the value as a label. It's meant as a short descriptor for storing in the database etc.
Understood. Thank you!