Support Article
Error messages on a property lost on focus
SA-43403
Summary
Error messages on a property lost on focus with Pega 7.1.9.
Error Messages
Not Applicable
Steps to Reproduce
1. Include a client side validation on a input field property. The property should have a Rule-Declare-Expression (RDE) defined on it.
2. Enter a value which fails the validation and move the focus to the next field.
3. Focus on the field again. Observe as soon as we focus on the field the error message is lost.
Root Cause
When a property is involved in a RDE it will have a implicit validation "calculateexpression" added on its uielement.
But this validation is terminated for onclick events on the element.
But this termination happens only when there is atleast one target property of RDEs is present in the UI. Otherwise the validation messages are removed.
Resolution
Type: Local-change, Explanation
Local-change: To Include the target property used in RDE in the section as hidden field.
Explanation: Include the target property of the RDE in UI. Target properties of the RDEs are anyway rendered in readonly. If it is not intended to be shown it can be hidden in UI with css visibility:none.
Published December 6, 2017 - 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.