Is there a way to use the default select field type and set an option to disabled? #11595
Unanswered
joeHillman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to use the default select type and set an option to disabled?
The use case I have is for a testimonial block...
I currently have New, Submitted, and Approved status in the select menu.
Using the hooks I can change the new status to submitted after the user has filled out the text area and submitted the form.
What I am unable to do currently is either remove the NEW option after submission, build the option menu and add to it after submission, or set a disabled flag on the options object entry.
The documentation does note that it only expects label and value, but I've found some easter eggs here and there so I thought I'd try.
I suppose I could use a custom UI element, but the ability to disable an option, I would've thought would be supported out of the box.
Beta Was this translation helpful? Give feedback.
All reactions