Closed lesterjanpearson closed 6 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.
hello , i want to ask if i can serialize the built form to json schema ? is that possible
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 ?
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 ?
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.
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
any updates on this?
It's on our roadmap, should be started in the coming weeks.
This is resolved.
I'm trying to figure out ways to save the form generated and load them from db. any idea?