insin / insin/newforms

formUpdate not displaying new data

Open
#133 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
634
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am using formUpdate to update form fields from an **ajax** source. Although the update works and the data appears as value of the inputs the fields are displayed as empty(but validated).

Updating values here:

```
componentDidMount: function() {
var self = this;
self.serverRequest = $.get(self.state.source, function (result) {

order = JSON.parse(result)

var form = self.refs.bookingForm.getForm()
//updateData Test
form.updateData({second_name: 'testing',
first_name: 'first_name',})

}.bind(self));
},
```

Any ideas?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.