How to prevent removing validation messages in on change event

In an on-change event I want to perform some actions using the changed attribute. When the user enters in incorrect value the validation message appears correctly. However it disappears directly at the first action of the on-change event. Is there a way to prevent Mendix to remove the validation message? Second: How can I check in the on-change event that a validation error has occurred?
0 answers