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

Edit Validate 'messages' are not cleared by Page-Clear-Messages

SA-2956

Summary



Page-Clear-Messages do not clear error messages added by Edit Validate rule.


Error Messages



Not Applicable


Steps to Reproduce



1. Specify an Edit Validate rule for a property.
2. Add a button next to it to run an activity that has a Page-Clear-Message step.
3. At runtime, add a wrong value for the property to trigger the edit validate rule and click the button.

The error message added by the Edit Validate rule does not get cleared.



Root Cause



This behavior is an out-of-the-box functionality. 


Resolution



The Page-Clear-Message method is used to delete all messages placed by the Page-Set-Messages method on the step page.

Messages placed by constraints rules, edit validate rules, and property type validation are not cleared - they are cleared and the restrictions are detested only when the property value changes.

This information is also documented in PDN.

https://community.pega.com/sites/default/files/help_v62/procomhelpmain.htm#methods/page-clear-messages/page-clear-messages.htm

Published October 8, 2020

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