5 ms·
Show HN: FieldVal.js – JavaScript Validation Library
- scottdavies 12y agoGreat demo. Looks very useful and easy to use.
- cmpb 12y agoLooks useful! Could you provide an example of a field with validations depending on the value (or validation status) of another field? E.g., birth_month required if birth_year is set and after a certain year.
- marcuslongmuir 12y agoHow's this?: http://codepen.io/MarcusLongmuir/pen/rawRKR http://codepen.io/MarcusLongmuir/pen/rawRKR You could also write a custom check that used the previous result as documented here: http://www.fieldval.com/docs/fieldval/Check%20Functions http://www.fieldval.com/docs/fieldval/Check%20Functions
- cmpb 12y agoThat's pretty slick. I'll put this library in my back pocket for later.