[BUG] formio.setSubmission({...}) does not set custom components submission data.
Environment
Please provide as many details as you can:
- Hosting type
- [x] Form.io
- [ ] Local deployment
- Version:
- Formio.js version: latest (4.13.11)
- Frontend framework: Default/VanillaJS
- Browser: Any
- Browser version: Any
Steps to Reproduce
- Create a form with a custom component along with Formio default components.
- Set the form submission with submission data for all components (custom and defaults)
Expected behavior
The custom component can render the whole submission data values set in step 2.
Observed behavior
The custom component key/value pair in the submission data gets lost somewhere.
Example
http://jsfiddle.net/07cn3fer/
@CatBakun Did you ever find a fix for this? Experiencing the same thing
@Alexa-Green, @CatBakun. I'm with the same issue. Any solutions?
@henriquesoareslima Implemented a local saving of the custom component details in state if I remember correctly, then re-injected that for handling the final submission. Not ideal or that dynamic, but it is a workaround.
Thanks @Alexa-Green. It's cool. I implemented different. I set the component value in the dataset tag and put that in the application. This is also not ideal.