You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two related fields: expiration month (mm) and expiration year (yy). I have custom validators on both of them to make sure the value is in the correct format, within range, and that the combo mm/yy is not <= the current mm/yy.
The problem is this: If today is 02/16 and I enter 02/16, it will correctly give me an error for month and year, saying it's expired. If I then change the year to 17, so now it is 02/17, changing the year triggers the year validation which succeeds, but I still have the error message under month saying it's expired.
How do I trigger re-validation of the month field after the user has changed the year field?
The text was updated successfully, but these errors were encountered:
I have two related fields: expiration month (mm) and expiration year (yy). I have custom validators on both of them to make sure the value is in the correct format, within range, and that the combo mm/yy is not <= the current mm/yy.
The problem is this: If today is 02/16 and I enter 02/16, it will correctly give me an error for month and year, saying it's expired. If I then change the year to 17, so now it is 02/17, changing the year triggers the year validation which succeeds, but I still have the error message under month saying it's expired.
How do I trigger re-validation of the month field after the user has changed the year field?
The text was updated successfully, but these errors were encountered: