Fix form field w/ refactor

This commit is contained in:
zandercymatics 2024-04-15 11:33:21 -06:00
parent 9d872d065c
commit 3c1c888356
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
7 changed files with 17 additions and 6 deletions

View file

@ -851,8 +851,16 @@ class NoOtherContactsForm(BaseDeletableRegistrarForm):
class CisaRepresentativeForm(BaseDeletableRegistrarForm):
cisa_representative_email = forms.EmailField(
required=False,
label="Are you working with a CISA representative?", # TODO-NL: (design check) - is this the right label?
required=True,
max_length=None,
error_messages={"invalid": ("Enter your email address in the required format, like name@example.com.")},
label="Your representatives email",
validators=[
MaxLengthValidator(
320,
message="Response must be less than 320 characters.",
)
],
)