Open laperon opened 9 years ago
Instead of saving html, saving json into some storage (mysql,mongo,file etc), is much mature. I wrote a builder for json output with php. Of course its not stable, cuz it produces html for my template. Actually its not hard to produce html output from json.
How are you sending data to server?
For now, its not a good solution, but im sending data to hidden input inside form. Formbuilder already generates the json output. Then I set hidden inputs' value with jquery.
inside fb.on('save') method just use $('#form_input').val(payload); check this answer. https://github.com/dobtco/formbuilder/issues/154#issuecomment-90607231
Hello !
I have some questions about save Json to HTML
var builder = new Formbuilder({ selector: '#formbuilder' });
builder.on('save', function(payload){ // How to conver JSON to HTML ???? });