/backbone-dynamic-form

A tiny backbone project that utilizes two JSON and backbone-forms to create a dynamic form.

Primary LanguageJavaScript

Using Backbone and jQuery take item.json and render a form similar to the form illustrated in image.jpg.

Certain fields ("materials" dropdown, radio button groups) require enumerations that can be found in the enums.json file.

  1. item.json must be loaded via AJAX (asynchronous of the page load; you'll want to have a development web server running). enums.json isn't required to be loaded asynchronously, it may be "bootstrapped" on page load.

  2. The form must be built dynamically by combining the values in the item model with enumerations in the enums.json file. Other form elements (labels, etc) may be hard-coded into HTML and/or templates.

  3. The user should be able to update and edit all form fields.

  4. Pressing the Save button should dump an updated and/or edited item.json to the browser console to demonstrate that it could be persisted to the server.