-
Notifications
You must be signed in to change notification settings - Fork 303
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
Highlight form fields that fail validation when submit button is clicked #2722
Conversation
662ca2d
to
7b3e378
Compare
7b3e378
to
7f23c6e
Compare
Hi @jingtang10 as per our discussion, I removed |
Hi @jingtang10 I checked for the next/previous case. It depends on entry mode of questionnaire. Please take a look at my findings below:
Please let me know how should we proceed here. |
@LZRS can you please take a look at this PR and test it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this out with a paginated questionnaire that has an entry mode of prior-edit
and also has a repeat group questionnaire item, and it looks good 👍
It validates the current page correctly and prevents one from navigating to the next page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@rahulmalhotra can you update the branch ? I have enabled auto-merge. |
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2681
Description
This change removes
forceValidation = false
assignment in theQuestionnaireViewModel
which was re-rendering the current patient edit screen without validation results.Alternative(s) considered
N/A
Type
Bug fix
Screenshots (if applicable)
N/A
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.