Support Article
Error does not display on clicking outside the text input cell
SA-46160
Summary
Error message does not display in a text input cell on clicking outside the cell without changing the value. However, on changing the cell value in the UI, the error message is displays correctly.
Error Messages
Not Applicable.
Steps to Reproduce
- Add a text input cell to a section for a property
- Configure an EditValidate rule in the property
- Configure a PostValue action for the Change event
- Launch the section and trigger the Validation rule on change of value
- Click the text input cell and click outside the cell without changing the value. Error doe snot display
Root Cause
A defect in Pegasystems’ code or rules. Min-length is set in the TextInput control. So the text element has both the minChars validation (onBlur) and the EditValidate rule validation (onChange). Whenever the text input is focused, minChars validation is triggered, and if the currentValue length exceeds the minChars configured, then all the errors present at the Property level are cleared instead of only clearing the error associated with minChars.
Resolution
Perform the following local-change:Include the minChars validation in the EditValidate rule itself.
Published April 12, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.