Form Validation Issues – Error Not Refreshing & Incorrect Validation Handling in Number Fields

XMLWordPrintable

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

      There are multiple validation issues observed in the “No. of contacts” and “Number of fellow commuters/Friends etc” fields in the Community Contacts form:

      1. Error Not Clearing After Valid Input:
        • When 0 is displaying in “No. of contacts” and clicks Submit, validation error is shown (expected).
        • However, after correcting the value with a valid number, the error message is not cleared/refreshed, and the form still gets submitted despite the previous error state.
      2. Invalid Input (Alphabets) Not Validated Immediately:
        • When user enters alphabets (e.g., “abc”) in “Number of fellow commuters/friends etc” field, no validation error is shown initially.
        • Error only appears after clicking Submit, instead of real-time validation.

      Steps to Reproduce:

      Case 1: Error Not Refreshing

      1. Showing 0 in “No. of contacts”
      2. Click Submit → Error displayed
      3. Enter a valid number (e.g., 1–1000)
      4. Click Submit

      Case 2: Alphabet Input Validation

      1. Enter alphabets (e.g., “abc”) in “Number of fellow commuters”
      2. Observe field behavior
      3. Click Submit

      Actual Behavior:

      • Error message does not clear after entering valid input
      • Form gets submitted even when error was previously shown
      • Alphabet input is accepted initially without validation
      • Validation triggers only on Submit

      Expected Behavior:

      • Error message should clear immediately once valid input is entered
      • Form should not submit until all validation errors are resolved
      • Numeric fields should restrict non-numeric input or validate in real-time
      • Proper validation messages should appear instantly for invalid inputs

         

        1. image-2026-08-08-12-13-30-328.png
          57 kB
          Nidhi Saini
        2. image-2026-08-08-12-13-47-384.png
          63 kB
          Nidhi Saini
        3. image-2026-08-11-13-09-02-212.png
          94 kB
          Nidhi Saini

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

                Created:
                Updated:
                Resolved: