FilamentF
Filament15mo ago
trymedo

Is it possible to have a required (non-nullable) Select Form Component?

I've added ->nullable(false) which adds an asterisk to the input, but I'm still able to remove the value from the select. Is there a way to avoid this? I'd love for nullable(false) to remove the x from the select box
image.png
image.png
Solution
Oh balls - I just re-read the docs and found what I was looking for. In case anyone else comes across this post, what you need is
->selectablePlaceholder(false)
Was this page helpful?