Skip to content

Forms: checkboxes and radio buttons

ShannonTucker edited this page Apr 1, 2022 · 19 revisions

Checkboxes and radio buttons are form controls that help users select an answer to a question.

Please see the form template to get started with creating your own forms and error messages.

Overview

Checkboxes

Radio buttons

Labels

There are 2 types of labels.

1. A label indicating a required input field

required label

2. A label indicating an optional input field

Optional label

Usage

When to use

  • In forms
  • Anywhere a user would need to select one option (radio buttons) or multiple options (checkboxes) from a list of options.
  • A checkbox can be used when there is only one option to choose from (ex: agree to the terms and conditions, turning on a setting).
  • You can use checkboxes if there are more than 7 options for the user to choose from but this is not recommended. Consider asking more questions to filter down the number of options.
  • Only use radio buttons when there are 7 or fewer options for the user to choose from. If there are more than 7 consider asking more questions to filter down the results or use a dropdown from field.

When not to use

How to use

Labels and options

  • On desktop, text for labels and options (per checkbox/radio button) can span 8 columns long (~60 characters with no spaces) or less.
    • After 8 columns, press enter to break the text into 2 lines.

Customizing checkbox and radio button fields

  • For radio buttons the maximum amount of options you can provide is 7.
    • Remove any additional options if you need less than this amount.
  • Colours and styles should not be changed.

Related components

Dropdown form field

How we created this component- 4A assessment

We altered checkboxes and radio buttons slightly from the canada.ca design system to match our other form elements such as text input fields. We also do not distinguish between larger checkboxes for forms and smaller checkboxes (tickboxes) for single items that can be checked, such as for confirmations. This was to maintain consistency within our forms.

Clone this wiki locally