sethsandaru / vue-form-builder

Super Form Builder built on top of Vue with Drag & Drop functionality, savable-form-schema and easy to maintain/upgrade your form.
http://vue-form-builder.sethphat.com
MIT License
413 stars 129 forks source link

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

Open spandana-priya1997 opened 2 years ago

spandana-priya1997 commented 2 years ago

was not able to bind FormValues that were stored previously.

Adiconquerors commented 2 years ago

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