jqBootstrapValidation icon indicating copy to clipboard operation
jqBootstrapValidation copied to clipboard

How to retest related fields when one changes?

Open tslatt opened this issue 8 years ago • 2 comments

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?

tslatt avatar Feb 25 '16 16:02 tslatt

I still need an answer on this. Anyone?

tslatt avatar Jun 06 '16 17:06 tslatt

Over a year later and I still need this. Does anyone know how to re-validate a single field without submitting or re-validating the entire form?

tslatt avatar Sep 19 '17 18:09 tslatt