diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py index fc780b760..f72336cd8 100644 --- a/src/registrar/forms/application_wizard.py +++ b/src/registrar/forms/application_wizard.py @@ -446,3 +446,14 @@ class RequirementsForm(RegistrarForm): ), required=False, # use field validation to enforce this ) + + def clean_is_policy_acknowledged(self): + """This box must be checked to proceed but offer a clear error.""" + # already converted to a boolean + is_acknowledged = self.cleaned_data["is_policy_acknowledged"] + if not is_acknowledged: + raise forms.ValidationError( + "You must read and agree to the .gov domain requirements to proceed.", + code="invalid", + ) + return is_acknowledged diff --git a/src/registrar/templates/application_current_sites.html b/src/registrar/templates/application_current_sites.html index 5b3943ef7..c72a7391f 100644 --- a/src/registrar/templates/application_current_sites.html +++ b/src/registrar/templates/application_current_sites.html @@ -8,7 +8,7 @@