-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
define question demand (not optional) #1091
Comments
Hi, I'm not super clear on your ask. Do you want to make sure the user select at least one option within the options? If so, I think you can do that safely with a custom
|
@SBoudrias yes, you are right, if this code can evolve to attribute, it will be better, just like
to
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required |
now every questions are optional, there is no way to define it demand.
suggestion: add
demandOption
config, if user select nothing or just press enter, exit error or auto load question to retry.The text was updated successfully, but these errors were encountered: