I am trying to create a form whose layout can be edited later on. For example my form might have 2 text boxes and a user may need to insert one more. I want to init the form using JSON. I can succesfully initialize and render it to user, but after user adds new things on my form, I can’ t retrieve new JSON. I need to get the form’ s new schema, so that I can persist it and show it to users.
Any ideas?
var main_layout = new dhtmlXLayoutObject(document.body, ‘1C’);
var a = main_layout.cells(‘a’);
var str = [{ type:“button” , name:“form_button_1”, value:“Add” },…]
var form_1 = a.attachForm(str);
@darya getFormData() method returns only the data on the controls contained in a form. I need to get the JSON string that constructs this form itself.
I can succesfully initialize a form using a JSON input, but I am unable to get the new form’ s JSON after a user modifies its structure. (For example one can add a new text control into form)