Skip to content

jQuery plugin form design, form build, user submit, user data display, and form structure edit

License

Notifications You must be signed in to change notification settings

libos/jquery.form-artisian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery.form-artisian

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.

i18n

On the Way

Demo

Demo in folder zone51

Description

  • 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

Usage

Design

$('.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

$('.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

$('.display-form').fart('display',{
    loadUrl: '/form/user-data'
});

Sketch

$('.workspace').fart('sketch',{
    panel: '#tool-panel',
    loadUrl: '/form/load',
    designSaveUrl: '/save_design_url',
    designSaveCb: function (json,data) {

    }
});

Mandatory requirements

Screenshot

Design Page

Design

Build Page

Build

Display Page

Display

License

Released under the MIT license.

About

jQuery plugin form design, form build, user submit, user data display, and form structure edit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published