Validation

Form validation ensures that the user enters the data that is required and in a correct format, by highlighting errors in their input. This is of equal importance for checkboxes, radio buttons and other form elements. Read more about validation in the UX Guidelines.

We included validation styles on form controls. To use, add .has-error to the parent element. Any .control-label, .form-control, and .help-block within that element will receive the validation styles.

Inputs, selects and textareas

Checkboxes and radio buttons

Required fields

For a required field, use .required class on the .form-group div.

For a required field, use .required class on the .form-group div.

Form group heading 1
Form group heading 2
Form group heading 3
Form group heading 4