How to clear msg set by Property-Set-Messages method

How to clear msg set by Property-Set-Messages method on a property?

Thanks.

@MaxonL16591286To clear a message set by the Property-Set-Messages method on a property in Pega, you can use the Page-Clear-Messages method, which removes all messages from the entire page, including property-specific ones. If you want to clear a message only for a specific property, you can use the Property-Set method and set the property value to an empty string (""). Another option, when working with a Java step in an activity, is to use tools.clearMessages(), which clears all messages from the current clipboard page. The Page-Clear-Messages method is effective when you want to reset the entire page, while Property-Set is more specific for targeting a single property. Using Page-Clear-Messages is generally recommended when working with validation failures across multiple fields, while Property-Set is ideal when you need to clear messages for a particular property after fixing its value. Be sure to choose the method based on the context, as clearing all messages might remove important error notifications. Let me know if you need further assistance on this!

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

@Sairohith

“use the Property-Set method and set the property value to an empty string ("").”

This will clear property value instead of property error msg.

@MaxonL16591286

re-submit the assignment will clear the property error msg. Seem this is only way.