Radio buttons
Before you use this component
Use the radio buttons component when users can only select one option from a list.
Don't use radio buttons if users need to select more than one option. In this case, use the Checkboxes component instead.
If you have more than a few options, consider using a Dropdown instead.
Users cannot go back to having no option selected once they have selected one, without refreshing their browser window. Therefore, you should include ‘None of the above’ or ‘I do not know’ if they are valid options.
Arrange the list of options in alphabetical order unless there is a specific reason to do otherwise.
Radio buttons with hints
You can add hints or guidance text to the label and to the checkbox items to provide additional information about the options.
Radio items with a text divider
If one or more of your radio options is different from the others, it can help users if you separate them using a text divider. The text is usually the word ‘or’.
Conditionally revealing a related question
You can show a related question when a user selects a specific radio button so they only see the question if it’s relevant.
This keeps related questions together and makes them easier to answer. For example, if a user selects "Contact me by Text message," you can show a box for them to enter their mobile phone number.
Inline radio buttons
You can choose to use inline radio buttons when:
the question only has two options
both options are short
With error
Display an inline error when there's something wrong. For example, when a user tries to proceed without selecting an option and the question is mandatory.