Best way to strip empty options from string dropdown #3986
Unanswered
genox
asked this question in
Sanity Studio v3 Support
Replies: 2 comments
-
The empty option exists to allow the field to be unset. If you have a specific case where you always need that field to have a value, you can either use validation or a custom input component. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your answer. I get that. But look at it from this perspective: If a component is defined to be always required using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use a lot of dropdown string fields and usually define a default selected option for editors.
Is it possible to disable the undefined option without having to hack a custom component or other trickery? It's confusing and unintuitive.
I couldn't find a configuration option to make that happen. Or could we add this as a feature?
Beta Was this translation helpful? Give feedback.
All reactions