Missing Max Character Length Validation in Text Fields (Contact Tracing Module)

XMLWordPrintable

    • Type: Bug
    • Resolution: Done
    • Priority: High
    • 2.0
    • Affects Version/s: None
    • None
    • STOP TB Sprint 5

      Max character length validation is missing in multiple text input fields within the Contact Tracing module. Users are able to enter excessively long text values, which exceeds expected limits and may impact UI rendering and data consistency.

      As per expected behavior, the following fields should have defined character limits, but currently no validation is applied:

      • Other Place → Expected limit: 100 characters
      • Name and Address of Employment → Expected limit: 500 characters
      • Name and Address of Institution → Expected limit: 500 characters
      • Notes / Remarks field → Expected limit: 500 characters

      Steps to Reproduce:

      1. Navigate to Contact Tracing module
      2. Open Community Contacts or Occupational Contacts form
      3. Enter long text (more than expected limit) in any of the above fields
      4. Observe behavior

      Actual Result:

      • User is able to enter unlimited characters
      • No validation or error message is shown
      • UI may stretch or become difficult to read

      Expected Result:

      • Character limit should be enforced on each field
      • Proper validation message should be shown (e.g., “Maximum 500 characters allowed”)
      • Input should be restricted after reaching limit

           

        1. image-2026-08-10-16-39-27-122.png
          50 kB
          Nidhi Saini
        2. image-2026-08-10-16-39-56-528.png
          71 kB
          Nidhi Saini
        3. image-2026-08-12-18-15-10-250.png
          116 kB
          Nidhi Saini
        4. image-2026-08-13-16-01-34-013.png
          117 kB
          Nidhi Saini
        5. image-2026-08-13-16-01-53-448.png
          117 kB
          Nidhi Saini
        6. image-2026-08-13-16-01-56-691.png
          117 kB
          Nidhi Saini

              Assignee:
              Nidhi Saini
              Reporter:
              Nidhi Saini
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: