Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refresh data in form #25

Closed
rafaeldl opened this issue Jul 2, 2019 · 2 comments
Closed

refresh data in form #25

rafaeldl opened this issue Jul 2, 2019 · 2 comments

Comments

@rafaeldl
Copy link

rafaeldl commented Jul 2, 2019

Hi,

How I refresh the submission.data in form rendered ?

@Sefriol
Copy link
Contributor

Sefriol commented Jul 18, 2019

I'm assuming that you want to programmatically change the values that are shown in the UI with the values show in submission.data. Since I'm not sure what's the proper way, I'll share what I'm currently using..

Changing the specific values in the submission.data does not seem to do anything since watch property is for the whole object, not it's specific values. You can trigger this watch property by reassigning this object with "new" object.

submission.data = Object.assign({}, submission.data)

But somebody with more proper knowledge probably knows the right way. But this should do it. Atleast it's a simple solution, but it may raise other problems..

@jeriah-formio
Copy link

We're currently addressing a backlog of GitHub issues. Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants