gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

How do I trigger the per-field validation chain when ANY field changes on the form? #763

Open roschler opened 2 years ago

roschler commented 2 years ago

I have my Alpaca form working well. On my form, the fields are tightly coupled logically and a change to any field means I need to run the per-field "validator" functions one every field (i.e. - a high degree of inter-field conditional dependency). Currently, Alpaca only executes the "validator" function defined for a field when the field loses focus. How can I configure my form such that the chain of field validation functions runs whenever any field's value changes?

Beautiful work. A big thank you for this project!