Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visit Date Accepts Past and Future Dates but Allows Form Submission #1596

Open
dinesh2096 opened this issue Feb 21, 2025 · 0 comments
Open
Labels

Comments

@dinesh2096
Copy link

The "Visit Date" field currently accepts both past dates (even before the enrollment date) and future dates. If a future date is entered, an error message is displayed, but the user is still allowed to fill out and save the form. Ideally, if an error is displayed, the user should be restricted from proceeding to the next page.

env : prod
apk version : 11.0,10.0 and 7.0 avni gramin

Steps to reproduce :

  1. fill the scheduled or uplanned visit.Edit the visit date
  2. Enter a past date that is before the enrollment date.
  3. Observe that error is displayed.
  4. Enter a future date beyond the allowed range.
  5. Observe that an error message appears, but the user can still proceed with filling out and saving the form.
  6. Click "Next" or "Save" and observe that the process is not restricted.

Expected result :

  • If a past date is before the enrollment date, an error should be displayed, preventing submission.
  • If a future date beyond the allowed range is entered and an error appears, the user should not be allowed to proceed to the next page or save the form.

Actual result :

  • The system displays an error for future dates but still allows form submission.
  • Past dates before the enrollment date are accepted with error and allows submission of the form.

Video reference :

https://drive.google.com/file/d/13MY93OGhpktV-Nq3-Rk9DnMo1SgR2ius/view?usp=drive_link

@dinesh2096 dinesh2096 added the bug label Feb 21, 2025
@github-project-automation github-project-automation bot moved this to New Issues in Avni Product Feb 21, 2025
@mahalakshme mahalakshme moved this from New Issues to Triaged in Avni Product Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Triaged
Development

No branches or pull requests

1 participant