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

Reset Form after Submission to Fix Notification Popup #860

Merged
merged 2 commits into from
Mar 22, 2024
Merged

Reset Form after Submission to Fix Notification Popup #860

merged 2 commits into from
Mar 22, 2024

Conversation

konavivekramakrishna
Copy link
Contributor

@konavivekramakrishna konavivekramakrishna commented Mar 22, 2024

Pull Requests Requirements

  • The PR title includes a brief description of the work done, including the Issue number if applicable.
  • The PR includes a video showing the changes for the work done.
  • The PR title follows conventional commit label standards.
  • The changes confirm to the OpenElis Global x3 Styleguide and design documentation.
  • The changes include tests or are validated by existing tests.
  • I have read and agree to the Contributing Guidelines of this project.

Summary

In the New Patient Form, after successful creation of a patient, ideally, the form values should be reset. However, since the values are not resetting, it triggers the handleChange function, which then evaluates to an error notification as if the values are already in use.

In this PR, after submitting the form, it clears the form values and also sets the max allowed date for the Date of Birth field to the current date.

Screenshots or Video

@konavivekramakrishna
Copy link
Contributor Author

@mozzy11

can you please review it

@mozzy11 mozzy11 merged commit ebc2507 into I-TECH-UW:develop_3x Mar 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants