Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Unable to bind back values that were submitted previously to the rendered form. #122

Open
spandana-priya1997 opened this issue Mar 7, 2022 · 1 comment

Comments

@spandana-priya1997
Copy link

was not able to bind FormValues that were stored previously.

@Adiconquerors
Copy link

Adiconquerors commented Mar 15, 2022

Hi,

You can assign the previous data in finally statement. Example below:

.then(response => {
                let data = response.data.data
                this.formData = JSON.parse(data.configuration_data)
            }).finally(response => {
                this.formValues = {'name': 'ADI', 'city': 'DDDDDDD'}
            })

You can also do like this:
.then(data => data.data).then(this.setData);

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

No branches or pull requests

2 participants