vue-form-builder
vue-form-builder copied to clipboard
Unable to bind back values that were submitted previously to the rendered form.
was not able to bind FormValues that were stored previously.
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);