Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple way to "disable" enum menu items or disallow them? #1477

Open
eduo opened this issue Jan 22, 2024 · 1 comment
Open

Simple way to "disable" enum menu items or disallow them? #1477

eduo opened this issue Jan 22, 2024 · 1 comment

Comments

@eduo
Copy link

eduo commented Jan 22, 2024

Hi.

I'm looking for a way to disable the "default" menu item in a required field where the default value can't be pre-selected. My goal is to have the first item either greyed out or to have it throw a validation error if selected.

I'm trying to do this directly in the schema, but it doesn't seem to be possible.

@schmunk42 schmunk42 self-assigned this Jan 23, 2024
@schmunk42
Copy link
Collaborator

Could you provide a simple example, please.

@schmunk42 schmunk42 removed their assignment Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants