Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update values from a FieldArray onChange #1136

Closed
jordantrainor opened this issue Nov 26, 2018 · 3 comments
Closed

How to update values from a FieldArray onChange #1136

jordantrainor opened this issue Nov 26, 2018 · 3 comments

Comments

@jordantrainor
Copy link

❓Question

I'm wondering how to update values when using a FieldArray. I have the values coming through, but how to I make onChange work?

Thank you.

@Evanion
Copy link

Evanion commented Nov 28, 2018

same here...
example project: https://codesandbox.io/s/ox047lvn4y

@malydok
Copy link

malydok commented Nov 28, 2018

You should probably set the value using setFieldValue when using custom fields so in @Evanion's case: form.setFieldValue(field.name, value).

@jaredpalmer
Copy link
Owner

You should use setFieldValue.

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

No branches or pull requests

4 participants