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

Error message flashes away on clicking outside the field



Error message flashes away on clicking outside the field. This occurs when there is a Required condition and Edit validate rule on a property. However, this works on click of tab, if the property is on a data page.

Error Messages

Not Applicable.

Steps to Reproduce

  1. Create a property with a Required validation and Edit validate rule for a positive integer
  2. Input a negative value in the integer field
  3. Focus out of the field using the mouse

Root Cause

A defect in Pegasystems’ code or rules. In this case, there is a server side error or validation on a field along with client side validations. If the client side validations pass, the errors clear, even if the server side error is present on the field.


Perform the following local-change: 

Configure an edit validate or validate rule to check the required input on the server instead of a required client validation on the field.

Alternatively, configure a corresponding client validation for the edit validate. Add the following script to a custom script and include it in the harness:

function positiveInteger_Validation(elem){
    if(parseInt(elem.value)>0 || elem.disabled ){
        return (new validation_Error(elem,"Enter a positive value!"));
positiveIntVal = new validation_ValidationType("pzIsPostiveInteger",positiveInteger_Validation);
positiveIntVal.addEventFunction("onblur", positiveInteger_Validation);
positiveIntVal.addEventFunction("onchange", positiveInteger_Validation);



Published August 19, 2019 - Updated December 2, 2021

Was this useful?

0% 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