Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to retest related fields when one changes? #188

Open
tslatt opened this issue Feb 25, 2016 · 2 comments
Open

How to retest related fields when one changes? #188

tslatt opened this issue Feb 25, 2016 · 2 comments

Comments

@tslatt
Copy link

tslatt commented Feb 25, 2016

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
Copy link
Author

tslatt commented Jun 6, 2016

I still need an answer on this. Anyone?

@tslatt
Copy link
Author

tslatt commented Sep 19, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant