Fix for no char limit on no other employees textarea

This commit is contained in:
Rachid Mrad 2023-12-21 12:30:18 -05:00
parent 04b4ca355a
commit 1cab7537d7
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
2 changed files with 9 additions and 1 deletions

View file

@ -610,6 +610,12 @@ class NoOtherContactsForm(RegistrarForm):
"we can contact to help us assess your eligibility for a .gov domain." "we can contact to help us assess your eligibility for a .gov domain."
), ),
widget=forms.Textarea(), widget=forms.Textarea(),
validators=[
MaxLengthValidator(
1000,
message="Response must be less than 1000 characters.",
)
],
) )

View file

@ -2,5 +2,7 @@
{% load static field_helpers %} {% load static field_helpers %}
{% block form_fields %} {% block form_fields %}
{% input_with_errors forms.0.no_other_contacts_rationale %} {% with attr_maxlength=1000 add_label_class="usa-sr-only" %}
{% input_with_errors forms.0.no_other_contacts_rationale %}
{% endwith %}
{% endblock %} {% endblock %}