Error message displayed on Harness
User has a property-set-message on a property to throw an error message when the value is blank. When a value is entered for the property after the validation has been fired, the error message is displayed on top of the harness. There is no error message displayed on the Clipboard or tracer though.
Steps to Reproduce
- Add a property-Set-message to a property to display an error if no value is entered in an activity.
- At run time, tab out without adding a value. Error message will be displayed near the property.
- Now, enter a value for the property and tab out. Error will now be displayed at the top of the harness.
Pega maintains a div with ERRORMESSAGES_ALL as ID, which holds all the errors in the response. This div is not shown initially as the property is already in the DOM, and a field level error is displayed. Once the field level is updated with a valid value, this change will not be propagated to the original div based on which the form error is displayed. This is a known limitation of the product.
Perform the following local-change:
Place the below code in userworkform or in the harness specific scripts.
33.333333333333% found this useful