FOUR-32296: Reject whitespace-only values in required fields#1921
Open
eiresendez wants to merge 1 commit into
Open
FOUR-32296: Reject whitespace-only values in required fields#1921eiresendez wants to merge 1 commit into
eiresendez wants to merge 1 commit into
Conversation
screen-builder
|
||||||||||||||||||||||||||||
| Project |
screen-builder
|
| Branch Review |
bugfix/FOUR-32296
|
| Run status |
|
| Run duration | 09m 46s |
| Commit |
|
| Committer | Eleazar Resendez |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
19
|
|
|
0
|
|
|
390
|
| View all changes introduced in this branch ↗︎ | |
|
QA server K8S was successfully deployed https://ci-1275e14c54.engk8s.processmaker.net |
|
mcraeteisha
approved these changes
Jul 22, 2026
|
QA server K8S was successfully deployed https://ci-1275e14c54.engk8s.processmaker.net |
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.




Issue & Reproduction Steps
Configure a Line Input or Text Area with the Required validation rule, open the screen Preview, enter only spaces, and submit the form.
Expected behavior: Whitespace-only values should be treated as empty, display the "Field is required" validation error, and block submission. Values containing visible text with surrounding whitespace should remain valid and unchanged.
Actual behavior: Whitespace-only values satisfy the Required validation rule and allow the form to be submitted without meaningful content.
Solution
required,required_if, andrequired_unless.How to Test
Test the steps above.
Automated checks completed:
npx jest tests/unit/ValidationRules.spec.js --runInBandnpm run run-cypress -- --spec "tests/e2e/specs/RequiredWhitespace.spec.js,tests/e2e/specs/ValidationRules.spec.js"npm run buildNote: The repository-wide Jest run is currently blocked by unrelated Vue and validatorjs transformation errors; the new focused unit suite passes.
Related Tickets & Packages
@processmaker/screen-builderci:deploy
.