top | item 8943829 Show HN: FieldVal.js – JavaScript Validation Library 19 points| marcuslongmuir | 11 years ago |minoblog.io 4 comments order hn newest cmpb|11 years ago Looks 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|11 years ago How's this?: http://codepen.io/MarcusLongmuir/pen/rawRKRYou could also write a custom check that used the previous result as documented here: http://www.fieldval.com/docs/fieldval/Check%20Functions load replies (1) scottdavies|11 years ago Great demo. Looks very useful and easy to use.
cmpb|11 years ago Looks 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|11 years ago How's this?: http://codepen.io/MarcusLongmuir/pen/rawRKRYou could also write a custom check that used the previous result as documented here: http://www.fieldval.com/docs/fieldval/Check%20Functions load replies (1)
marcuslongmuir|11 years ago How's this?: http://codepen.io/MarcusLongmuir/pen/rawRKRYou could also write a custom check that used the previous result as documented here: http://www.fieldval.com/docs/fieldval/Check%20Functions load replies (1)
cmpb|11 years ago
E.g., birth_month required if birth_year is set and after a certain year.
marcuslongmuir|11 years ago
You could also write a custom check that used the previous result as documented here: http://www.fieldval.com/docs/fieldval/Check%20Functions
scottdavies|11 years ago