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

Yes/No question as a Radio button #814

Closed
orlando opened this issue Nov 20, 2019 · 5 comments
Closed

Yes/No question as a Radio button #814

orlando opened this issue Nov 20, 2019 · 5 comments

Comments

@orlando
Copy link

@orlando orlando commented Nov 20, 2019

Problem you are facing

Right now Yes/No questions are rendered as a checkbox. If you need to require an answer for a question from users specifically answer No, we can't.

Possible Solution

Instead of rendering these as Checkboxes, we should render them as Radio buttons.
Ex
image

Context

Have a Yes/No question rendered as a Radio button

Some questions we need for users to explicitly answer either Yes or No

@rixx

This comment has been minimized.

Copy link
Member

@rixx rixx commented Nov 20, 2019

Sorry, but that won't be useful for other cases, such as [x] I accept the terms and conditions.

Instead, please create a choice question with the options "Yes" and "No" if you want to permit both options. They will render as radio buttons.

@rixx rixx closed this Nov 20, 2019
@orlando

This comment has been minimized.

Copy link
Author

@orlando orlando commented Nov 20, 2019

@rixx I tried that but was rendered as a dropdown. I'll double-check to see if there's an option to make it as a radio button.

Also, this can be made as an option instead of changing the behavior. I should have added that detail to ticket

@rixx rixx reopened this Nov 20, 2019
@rixx

This comment has been minimized.

Copy link
Member

@rixx rixx commented Nov 20, 2019

My mistake, it seems you are right! I think offering Radio inputs is better UI in nearly all cases here, so let's do that by default on "Choose one from a list" questions.

@rixx rixx closed this in 95fb874 Nov 20, 2019
@orlando

This comment has been minimized.

Copy link
Author

@orlando orlando commented Nov 20, 2019

Thanks! @rixx. Well not nearly all. We are adding a Country of Origin question that requires to be a dropdown. Radio buttons will break the UI for sure. I believe this needs to be provided as an option instead of by default

@rixx rixx reopened this Nov 21, 2019
@rixx

This comment has been minimized.

Copy link
Member

@rixx rixx commented Nov 21, 2019

That's a good point, but I still disagree on the additional setting. Settings fatigue is a thing, and I'd rather provide a sensible default than force users to configure a bunch of things like these. I think displaying up to three options as radio buttons, and anything over that as dropdown seems sensible.

@rixx rixx closed this in 817f25b Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.