vue-form-builder icon indicating copy to clipboard operation
vue-form-builder copied to clipboard

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

Open spandana-priya1997 opened this issue 2 years ago • 1 comments

was not able to bind FormValues that were stored previously.

spandana-priya1997 avatar Mar 07 '22 10:03 spandana-priya1997

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);

Adiconquerors avatar Mar 15 '22 11:03 Adiconquerors