Home App Docs Blog Github

Blank option in Text enum in model definition

Hi there. I have a Text field with a predefined list set up as an enum. How do i make this field non-required? Once a user chooses an item from the list there is no way for them to choose another option to leave the field undefined

Hey Yashu, thanks so much for reaching out!

Currently, there’s not a way to have the default option of your enum list be empty, but I noticed you used “-” as one of the options. Using something like that or could be a workaround and then check for that value when reading the input’s value.

We’ll also add this feature request to our roadmap!