Repository navigation
Show the Validating... indicator during a form's initial validation - #1246
Merged
labkey-martyp merged 2 commits intoNov 25, 2026
Merged
Conversation
On large forms the load-time validation of every record kept the submit buttons disabled with no indicator, because the indicator was suppressed until the form finished loading.
labkey-bpatel
approved these changes
Nov 19, 2026
labkey-martyp
commented
Nov 25, 2026
labkey-martyp
left a comment
Contributor
Author
There was a problem hiding this comment.
Tests passed as tested by users.
labkey-martyp
added a commit
to LabKey/onprcEHRModules
that referenced
this pull request
Nov 25, 2026
…tion open (#2004) ## Rationale Re-enable `ONPRC_EHRTest.testSubmitButtonsDisabledDuringValidation`, which was disabled in #1866 for flaking on a timing race. Force Submit is only disabled while validation is in flight, and a fast validation pass could finish before the test opened the More Actions menu, so the disabled check failed intermittently. The test now holds the form's validation responses in the browser while it inspects the actions, which makes the in-flight state last as long as the checks need. ## Related Pull Requests - LabKey/ehrModules#1246 - #1866 ## Changes - Hold validation responses in the page while checking the actions, then release them and check the settled state. - Check every validation-gated action on the form instead of a fixed list that silently skipped a mislabeled button. - Open Medications/Diet by its exact label so the test cannot land on CMU Medications/Diet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
Show the "Validating..." indicator while a data entry form's initial validation runs, so the disabled submit buttons always come with an explanation. When a form opens, every record is validated on the server, and the submit buttons stay disabled until that finishes, but the indicator added in #1113 was suppressed until the form finished loading. On large forms (e.g. a Labwork task with ~600 results) that left the buttons disabled for several seconds with no indicator.
Related Pull Requests
Changes