brutusin / json-forms

JSON Schema to HTML form generator, supporting dynamic subschemas (on the fly resolution). Extensible and customizable library with zero dependencies. Bootstrap add-ons provided
http://brutusin.org/json-forms
Apache License 2.0
608 stars 168 forks source link

Automatically fill fields from values in other fields #31

Open jdp opened 8 years ago

jdp commented 8 years ago

It would be great to be able to automatically update fields with the values of other fields as they change. The json-editor project supports this with the watch and template extensions to JSON schema.

idelvall commented 8 years ago

You can achieve what I assume a similar behavior using dynamic schemas (see example http://brutusin.org/json-forms and its schema resolver). The idea is to have schema parts (subchemas) whose definiton is dynamic and changes depending on the values of other parts.