Open jokamax opened 5 years ago
This isn't a supported use case
userData is only used by formRender. For text inputs you could map the userData back to the value attribute however for select/checkbox/radio you would need to map the selected state back to the options array.
Description:
I use my forms in all directions :
I create a form
Save the form with : formBuilderInstance.actions.getData('json', true)
Show it to the users : formBuilderInstance.formRender(formRenderOpts);
Save complete form with : var content = JSON.stringify(formBuilderInstance.formRender('userData')); This contain ["Form" + "userData"] -> OK
I give my users possibility to add/remove a field, then I use : formBuilder.actions.setData(content );
Problem : loading is workging BUT userData is totally lost
Is there a way to preserve userData inside the form "builder", even if it keep invisible or in a special field ?
Environment Details: