I am trying to check the fields in the following form structure using knockout.validation.
form body:
static fields (observables)
field_container:(observableArray)
n dynamic fields (observables)
Here's a simple implementation in jsfiddle. http://jsfiddle.net/D6Ltg/4/
I can check static fields when calling errors.showAllMessages, but dynamic fields are not checked. How can I check observables in observable array?
Edit: RTFM: https://github.com/ericmbarnard/Knockout-Validation/wiki/Configuration
Adding grouping: {deep: true} to the configuration makes all nested structures valid.
source
share