How i can clear messages in View

I have a requirement to display a validation message when a property value changes. To achieve this, I am using pxAddMessageToPage in a Data Transform that is triggered through the Flow Action’s Form Refresh Conditions.

The validation message is displayed correctly when the input is invalid. However, when the user updates the field with a valid value, I want the message to be removed immediately from the UI.

I tried using pxClearMessages() to clear the page-level message, but the message continues to persist on the view. The validation is not blocking submission, and the screen can be submitted successfully with the corrected input. The issue is that the validation message remains visible even after the input becomes valid.

I recommend to use Field warnings and contextual messages in forms to display Warning messages to the users, however this doesn’t STOP the users from submitting the form. If you are looking for hard STOP, then use Validation to prevent the users submitting the form.

This helps Ramesh, We will go a head with this approach. But do you have any idea why my above approach did nnot worked? is that a constellation limitation again?

We have experienced the similar issue with pxAddMessage on the modal dialog.