bug with custom submission.data & container & columns component
i'm trying to inject default values to form(which has container component in it):
Formio.createForm(document.getElementById('${formId}'), _scope${formId}.formSchema, _scope${formId}.formOptions).then(function (form) {
form.submission= {data:{containerfeild:{field1:1111}}};
but the value won't show in the form
i did a few test on the form ....it's only happening when you use container. i use container component in my form and also try to set form.submission on rendering when form loaded sussesfully any change i make in form using data entry won't effect the submission object.
i think when i set custom data to form.submission on rendering, the submission object kind of loss the connection to container field value object
use this sample form for debugging.... i have custom button with a debugger in it.
i think this is happening only when you have a layout component(columns/fieldset) in container. in my sample-form you can see the "t1" field works fine but you don't have the data of "t2" & "t3" which are in column component.
- you should set form.submission= {data:{}}; after form creation
Could you try using the latest 4x renderer?
If the issue persists please feel free to open a new issue.