Support Article
Keep error message on the screen when user tabs out
SA-79438
Summary
A validation is configured on a field. After entering a value which violate the condition, an error message displays below the field and above the section. When the focus is out of the field, the validation message does not display below the field and displays only above the section.
Error Messages
Not Applicable
Steps to Reproduce
Not Applicable
Root Cause
In the Pega Validators JavaScript file, the errorDiv.style.display = "none";(Line 1907) code was triggered and hid the DIV which contained the errors. This behavior occurred when the Field was marked as 'Required'.
Resolution
Perform the following local-change:
Apply the below CSS in UserWorkForm or skin:
<style>
.dynamic-icon-error-div{
display:block !important;
}
</style>
Published August 15, 2019 - 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.