tonytan4ever / Bootstrap-Form-Builder-V3V4

A bootstrap 3.0 form drag and drop builder, implemented in Jquery. Based on: https://github.com/minikomi/Bootstrap-Form-Builder
MIT License
74 stars 43 forks source link

way to store/save or load form #3

Closed lesterjanpearson closed 6 years ago

lesterjanpearson commented 9 years ago

I'm trying to figure out ways to save the form generated and load them from db. any idea?

tonytan4ever commented 9 years ago

Apologize for getting back late. The easiest way to implement this is to write a event handler listening to change for the div (id="rendered") holding the form snippet.

The logic of this event handler: Whenever the form snippet rendered in this div, make an Ajax call saving the form snippet text to a database.

karev commented 9 years ago

hello , i want to ask if i can serialize the built form to json schema ? is that possible

tonytan4ever commented 9 years ago

Apologize for getting back late again. :<

Yes, it is possible to serialize the built from a json document, including a schema. Can you tell me exactly what do you what to do ?

karev commented 9 years ago

i want to get a json object describing each of the fields of my form , so i can generate dynamic crud and rest api for the form , so can you put a little code snippet that return my form as json when i click the save button ?

tonytan4ever commented 9 years ago

I thought about it, I think that is doable. What would be "a json object describing each of the fields of a form" look like though ? Let me get a example object for you to look at.

lorvent commented 8 years ago

I am also interested in this for example, it should display json like

[
    {
        "field":"title",
        "type":"text"
    },
    {
        "field":"body",
        "type":"textarea"
    }
]

btw, for input field even if i check "required", its not reflecting.

also, https://github.com/McNull/angular-form-gen this seems to be providing it but unfortunately angular based

kodeine commented 6 years ago

any updates on this?

tonytan4ever commented 6 years ago

It's on our roadmap, should be started in the coming weeks.

tonytan4ever commented 6 years ago

This is resolved.