Skip to main content

This is a guide on using the GOV.UK Design System Form Builder

  1. Index
  2. Select boxes

Select field

The select component allows users to choose an option from a long list.

Before using the select component try asking users questions which will allow you to present them with fewer options.

Asking questions means you’re less likely to need to use the select component and can consider using a different solution, such as radios.

Select field with a label and hint


departments = [ 1, name: 'Sales'), 2, name: 'Marketing'), 3, name: 'Finance')


= f.govuk_collection_select :new_department_id,
  label: { text: "Which department do you work in?" },
  hint_text: "You can find it on your ID badge"

Rendered output

You can find it on your ID badge

HTML output

<div class="govuk-form-group">
  <label for="person-new-department-id-field" class="govuk-label">
    Which department do you work in?
  <span class="govuk-hint" id="person-new-department-id-hint">
    You can find it on your ID badge
  <select id="person-new-department-id-field" class="govuk-select" aria-describedby="person-new-department-id-hint" name="person[new_department_id]">
    <option value="1">
    <option value="2">
    <option value="3">