Closed themattkenney closed 9 months ago
@themattkenney, here's a fork of that fiddle that redraws the form after setting the submission with those data values:
https://jsfiddle.net/qre4wj5d/
Can you clarify what you mean by controls not being removed?
@aiwebb in 3.X viewAsHTML would remove the controls like the renderMode: 'html' does.
I see your code addition of ' form.on('change', () => { form.redraw() })'
Is this addition required in 4.x load the values or is it a hack to get around an issue?
Thank you for showing the change as this will get me what I need.
@aiwebb - form.redraw()
works for me but the Google Address field value show as [object Object]
.
The form should probably redraw after setting the submission automatically and not require the form.redraw(). The google address must not have a good view as html rendering yet. We can look into this.
@randallknutson any update on if/when the address html view bug will be fixed?
@themattkenney We are hoping to get this item fixed with a new build by early next week.
@jhen1422 Any update on the fix for the address part?
@themattkenney We're still working on the address component working out some minor issues. I'll be sure to let you know when this has been complete and pushed.
Hi @jhen1422 - Any update on this issue fix?
@MohitNaroliya This feature is still a work in progress.
Hi, the fix is going to be just for the address component or for all components when using viewAsHTML?
@josecristhian This is currently being worked on for the address component
@jhen1422 any update on the progress for this bug?
@themattkenney This issue is still outstanding for the Address component.
@jhen1422 @aiwebb - Any update on this issue?
This item is still on our backlog. We welcome a pull request and have a process to expedite if you are interested. Please contact support@form.io if you are interested in expediting.
Thank you.
I am pretty certain this PR will resolve this issue. We will close it once we pull that in and confirm.
We assume that this issue has been already resolved with this PR https://github.com/formio/formio.js/pull/4745. Closing this thread. Please re-open if it is still relevant. Thank you for your contribution!
Environment
Local using latest build https://unpkg.com/formiojs@latest/dist/formio.full.min.js
Steps to Reproduce
Expected behavior
Should display for the submission without controls and data. No way to display only data with current builds.
Observed behavior
Example
https://jsfiddle.net/0Lvtaxes/