final-form / final-form/react-final-form

Update the form values based on an external service response

Open
#469 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

I'm using the `react-final-form` package to create configurable forms based on a schema.

I've got a need where I need to attach the Google Maps Places autocomplete functionality to the input field. This is easy enough, however when a user selects the place from the Google dropdown, I need to then take the place data and update the form's values object so that each other field can be filled in with Google's place data.

For the most part it seems that each field input element can only update the property on the values object that it is responsible for. I'm wondering how I can trigger updating multiple field values on the form from an external service?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.