Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Flickering effect when validation fails

SA-45165

Summary



When validation fails, the error Div appears and disappears immediately, resulting in a flickering effect.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a property and post activity validation for the property.
  2. Add the property to a section rule.
  3. Run the case and provide an invalid value to the property.
  4. Submit the flow action. Observe the flickering effect.


Root Cause



A defect in Pegasystems’ code or rules. The Display Form-error option was unchecked. The flickering was observed after flow action validation. This was because the error Div appeared and disappeared immediately. The flickering occurred because the DisplayError API did not verify if the Display Form-error was checked or unchecked.


Resolution



Perform the following local-change:

Add the below script in the UserWorkForm:


<script>
pega.u.d.handleErrorAfterPartialSuccess = function(responseObj) {
...
if (errorTable && pega.u.d.alwaysShowFormLevelErrors === "true") {
pega.u.d.displayFormErrors(pega.util.Dom.getOuterHTML(errorTable[0]), newElement);
return errors;
}
...

}
</script>



Published February 15, 2018 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us