🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

FormForm is a jQuery based form generation plugin that allows to dynamically generate a Bootstrap form from JSON data.

Bootstrap json form-builder

Documentation

Bootstrap-FormForm

Client-side form rendering for Bootstrap 3.

Example

http://www.bergmiller.de/formform_demo.html

Dependencies

  • jQuery
  • Underscore.js
  • Select2 (optional)

Usage

var fields, form;  fields = [ 	{ 		name: 'username', 		label: 'Benutzername', 		type: 'text' 	}, { 		name: 'password', 		label: 'Passwort', 		type: 'password' 	}, { 		label: 'Anmelden', 		type: 'submit', 		class: 'btn-default', 		icon: 'ok' 	} ];  form = FormForm( $('form'), fields ); form.render();

Automatic form generation with Django

Subclass JsModelForm and access the property json_form_fields on an instance.

Options

Horizontal forms

Horizontal forms are supported. Add class="form-horizontal to the form-tag.


You May Also Like