jQuery plugin form design/reload editor, rebuild form, save user data, display user data
Like Ninja Form, a simple and standalone version.
Please check branch with-radio, a version with radio group.
On the Way
Demo in folder zone51
- Design: Design a form online with drag and sort,and generate JSON object to store form data with position
- Build: Use designed JSON data to build a form to receive user data, and save user data and form structure in a new JSON object
- Display: Display user data with form structure
- Sketch: Load a JSON data generated by Design and ready to edit and update
$('.workspace').formArtisian('design',{
panel: '#tool-panel',
designSaveUrl: '/save_design_url', // Ajax post data to designSaveUrl
designSaveCb: function (json,data) {
//json your return
//data form saved data
}
});
or
$('.workspace').fart('design',{
panel: '#tool-panel'
});
$('.build-form').fart('build',{
loadUrl: '/form/load', //get JSON data generated by Design
saveUrl: '/form/save', //location where user data post to
datepicker:true,
saveUserDataCb: function (json,data) {
//json: saveUrl response
//data: user filled form and click submit, then collect user data
}
});
$('.display-form').fart('display',{
loadUrl: '/form/user-data'
});
$('.workspace').fart('sketch',{
panel: '#tool-panel',
loadUrl: '/form/load',
designSaveUrl: '/save_design_url',
designSaveCb: function (json,data) {
}
});
- jQuery v. 1.6+
- Boostrap v.4-alpha
- jQuery UI sortable draggable v. 1.9+
- blueimp jQuery File Upload v. 9.1+: Used to upload files
- blueimp JavaScript Templates v. 3.5+: Used to load templates.
Released under the MIT license.