diff --git a/app/main/forms.py b/app/main/forms.py index b57701aa3..e054d9e4d 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -588,7 +588,7 @@ class govukCheckboxesField(SelectMultipleField): } # add HTML to group items if more than one - if len(items) > 1: + if len(field.choices) > 1: params.update({ "fieldset": { "attributes": {"id": field.name},