formData

Initialize formBuilder with existing data using the formData option.

Usage

// XML
var options = {
      formData: '<form-template><fields><field type="text" label="Text Input"></field></fields></form-template>'
    };
$(container).formBuilder(options);

OR

// JSON
var options = {
      formData: '[{"type":"text", "label":"Text Input"}]',
      dataType: 'json'
    };
$(container).formBuilder(options);