From 3d1dab93c2ee69cdd12a793d85a658013f9b6b06 Mon Sep 17 00:00:00 2001 From: Rachid Mrad Date: Tue, 16 Jan 2024 15:29:24 -0500 Subject: [PATCH] Change required message on yes/no form --- src/registrar/forms/application_wizard.py | 3 +++ src/registrar/templates/application_other_contacts.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py index bf62769f8..33cebd273 100644 --- a/src/registrar/forms/application_wizard.py +++ b/src/registrar/forms/application_wizard.py @@ -612,6 +612,9 @@ class OtherContactsYesNoForm(RegistrarForm): choices=((True, "Yes, I can name other employees."), (False, "No. (We’ll ask you to explain why.)")), initial=initial_value, widget=forms.RadioSelect, + error_messages={ + 'required': 'This question is required.', + } ) diff --git a/src/registrar/templates/application_other_contacts.html b/src/registrar/templates/application_other_contacts.html index 900134c0a..c8810edce 100644 --- a/src/registrar/templates/application_other_contacts.html +++ b/src/registrar/templates/application_other_contacts.html @@ -51,7 +51,7 @@ {{ form.DELETE }} {% endif %} -
+
{% input_with_errors form.first_name %}