On a certain screen of our application, we have two dates which both have a remote validation attribute on them in the viewmodel. The attribute will compare the dates and see if they are filled in.
The validation logic is working correctly, but clearing the validation messages is giving us some issues.
Example:
Date 1 -> 05/05/2015
Date 2 -> 06/06/2015
Date 2 gets emptied
=> Validation on date 2 triggers and a message appears above the textbox of date 2
We change the value of date 1
=> Validation on date 1 triggers because date 2 is empty
We fill in date 2
=> Validation message of date 2 disappears but validation message of date 1 stays
Is there a way to make the validation on date 1 disappear as well, when the value of date 2 gets filled in correctly?