diff --git a/src/registrar/forms/domain.py b/src/registrar/forms/domain.py index 1a6a8778e..0d135c58b 100644 --- a/src/registrar/forms/domain.py +++ b/src/registrar/forms/domain.py @@ -33,9 +33,7 @@ class DomainAddUserForm(forms.Form): email = forms.EmailField( label="Email", - max_length=254, error_messages={"invalid": ("Enter your email address in the required format, like name@example.com.")}, - # This validator should exist in the event that a preexisting field is of invalid length validators=[ MaxLengthValidator( 254, @@ -302,12 +300,10 @@ class DomainSecurityEmailForm(forms.Form): security_email = forms.EmailField( label="Security email (optional)", - max_length=254, required=False, error_messages={ "invalid": str(SecurityEmailError(code=SecurityEmailErrorCodes.BAD_DATA)), }, - # This validator should exist in the event that a preexisting field is of invalid length validators=[ MaxLengthValidator( 254, diff --git a/src/registrar/forms/domain_request_wizard.py b/src/registrar/forms/domain_request_wizard.py index 8ef0f6e33..9ac17b145 100644 --- a/src/registrar/forms/domain_request_wizard.py +++ b/src/registrar/forms/domain_request_wizard.py @@ -369,9 +369,7 @@ class AuthorizingOfficialForm(RegistrarForm): ) email = forms.EmailField( label="Email", - max_length=254, error_messages={"invalid": ("Enter an email address in the required format, like name@example.com.")}, - # This validator should exist in the event that a preexisting field is of invalid length validators=[ MaxLengthValidator( 254, @@ -574,9 +572,7 @@ class YourContactForm(RegistrarForm): ) email = forms.EmailField( label="Email", - max_length=254, error_messages={"invalid": ("Enter your email address in the required format, like name@example.com.")}, - # This validator should exist in the event that a preexisting field is of invalid length validators=[ MaxLengthValidator( 254, @@ -637,12 +633,10 @@ class OtherContactsForm(RegistrarForm): ) email = forms.EmailField( label="Email", - max_length=254, error_messages={ "required": ("Enter an email address in the required format, like name@example.com."), "invalid": ("Enter an email address in the required format, like name@example.com."), }, - # This validator should exist in the event that a preexisting field is of invalid length validators=[ MaxLengthValidator( 254,