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

Add validation for facility triage with future date #7361

Closed
nihal467 opened this issue Mar 8, 2024 · 3 comments · Fixed by #7366
Closed

Add validation for facility triage with future date #7361

nihal467 opened this issue Mar 8, 2024 · 3 comments · Fixed by #7366
Assignees

Comments

@nihal467
Copy link
Member

nihal467 commented Mar 8, 2024

Describe the bug

We can create facility triage with the future date.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the facility detail page
  2. Scroll down to the bottom, and click "add triage"
  3. type future date by typing in the field and submit the form
  4. see the error

Expected behavior

We should block facility triage with a future date

Screenshots

image

@saloni0419
Copy link
Contributor

@nihal467 can you please assign this issue to me.

@Dareenfadel
Copy link
Contributor

@nihal467 could you please assign it to me?

@Dareenfadel
Copy link
Contributor

@nihal467 i made a general solution that will be in all dataformfields so any component use it will check if disabel future or past is applied it will prevent user from entering input not allowed but the message here will be general
However, if you need to have each case handled alone so you can customize a message i can do and also do for each dateformfield used in the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants