Skip to content

Show the Validating... indicator during a form's initial validation - #1246

Merged
labkey-martyp merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_validating_indicator_on_load
Nov 25, 2026
Merged

labkey-martyp merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_validating_indicator_on_load

Conversation

@labkey-martyp

Copy link
Copy Markdown
Contributor

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

  • The indicator is no longer suppressed during form load.
  • The indicator is shown when the form is built if a validation is already in flight.

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-martyp labkey-martyp left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests passed as tested by users.

@labkey-martyp
labkey-martyp merged commit 4248043 into release26.7-SNAPSHOT Nov 25, 2026
9 of 10 checks passed
@labkey-martyp
labkey-martyp deleted the 26.7_fb_validating_indicator_on_load branch November 25, 2026 17:56
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.
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