Skip to content

Conversation

@Iwantexpresso
Copy link
Contributor

@Iwantexpresso Iwantexpresso commented Dec 18, 2025

Fixes #7156
Prevented an issue Cause by both html5 min validation and Specify's negative validation both being triggered at the same time, causing the error popup to display multiple cannot be negative messages to be added to the popup

Note: this error appears after the countAMT field has the initialize="min=0 field set in its form definition, see instructions below to recreate or follow testing instruction from #6462.

Screen.Recording.2025-12-18.at.12.19.27.PM.mov

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list
  • Add automated tests
  • Add a reverse migration if a migration is present in the PR

Testing instructions

  • Go to a collection Object Form
  • Click in and out of the input field multiple times
  • verify that inputting a negative CountAMT field in Preparations results in a error and that you cannot save ( this should use the specify Save Blockers and display message "Preparation count cannot be negative")
image
  • Go to The preparation Form definition, and go to the XML view
  • Add initialize="min=0" to the <cell type="field" id="3" name="countAmt" uitype="text"/> if needed
    Like this:
image
  • Save and clear cache/log out and back
  • Go back to CO entry forms and try inputting a negative into the same field in preparations
  • click in and out of the field multiple times.
  • Verify that only a single message error message appears( this time the HTML 5 message should appear only and display message "Please Select a value no less than 0")
image
  • (optional) Test in at least one more preparation view/subview

… text of html 5 validation to avoid both of them running
Triggered by b636151 on branch refs/heads/issue-7156
@Iwantexpresso Iwantexpresso changed the title Issue 7156 Fix: Repeated Warning Message "Preparation count cannot be negative" Dec 18, 2025
@melton-jason melton-jason self-requested a review December 18, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋Back Log

Development

Successfully merging this pull request may close these issues.

Repeated Warning Message "Preparation count cannot be negative"

2 participants