Missing Validation on Mandatory field & Date Logic in follow Up module

XMLWordPrintable

    • Type: Bug
    • Resolution: Done
    • Priority: High
    • 1.1
    • Affects Version/s: None
    • None

      Multiple validation issues are observed on the "Actual Treatment Completion Date" field:

      1. Mandatory Validation Missing:
      • Actual Treatment Completion Date field is not enforced as mandatory. Users are able to submit the form without entering a value.
      • Reason for not completing treatment field is not enforced as mandatory. Users are able to submit the form without entering a value.

             2. Date Logic Validation Missing:
               There is no validation to ensure that the "Actual Treatment Completion Date" is               greater than the "Last Follow-Up Date".

             3. The "Follow-Up Date" field is showing a validation error when the Submit button            is clicked for the second time, even though valid data has already been entered.

               On the first click, the form behaves as expected. However, on clicking Submit          again (without changing any data), the "Follow-Up Date" field incorrectly displays a validation error.

      Steps to Reproduce:

      1. Navigate to TB Confirmed → Follow-Up module.

      Case 1: Mandatory Validation
      2. Leave "Actual Treatment Completion Date" field empty.
      3. Click Submit.

      Case 2: Date Validation
      4. Enter a "Last Follow-Up Date".
      5. Enter an "Actual Treatment Completion Date" ≤ Last Follow-Up Date.
      6. Click Submit.

      Case 2: Error on Follow up Date

      7. Click on submit and observe field. 

      Expected Result: * Field should be mandatory → system should block submission if empty.

      • System should validate date logic:
        "Actual Treatment Completion Date must be greater than Last Follow-Up Date".
      • Submission should be blocked for invalid inputs.
      • Field should display error on first click.

       
      Actual Result: * Form gets submitted without entering the date.

      • No validation for incorrect date sequence.
      • Invalid data is accepted.
      • Field is displaying error on second click.

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

                Created:
                Updated:
                Resolved: