diff --git a/app/main/forms.py b/app/main/forms.py index 6925293de..f86d4b7c7 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -579,7 +579,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},