Without a doubt the most requested feature for jQuery formBuilder has been JSON support and it finally arrives in v1.16.0.
In previous versions a
<textarea> element was required to insert formBuilder where it was needed on a page- this is no longer supported. There are numerous reasons for the removal but among the top 3 are :
- It’s slow. In addition to saving data internally, formBuilder continued to write that same data to the
<textarea>for legacy support.
<textarea>needed to be manipulated on re-render and forced developers to add an arbitrary tag to their html for the sake of formBuilder
- It’s just bad practice
The removal of
<textarea> means formBuilder is now initialized on the containing element or more specifically, the element that will hold the builder. Example:
Previously formData could be saved directly from
$(textarea).val()– no more. FormBuilder’s formData is now located in
data('formBuilder').formData on the jQuery object formBuilder is initialized on.