Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

How to get only data that have value #460

Open
vitoropereira opened this issue Apr 11, 2022 · 1 comment
Open

How to get only data that have value #460

vitoropereira opened this issue Apr 11, 2022 · 1 comment

Comments

@vitoropereira
Copy link

In a form with multiple inputs, how can I get only the data from the inputs that have data filled in. (Some data is coming from with null value).
There is some exemple?

@lvsouza
Copy link

lvsouza commented Jun 24, 2022

You can use formRef.current?.getFieldValue('someField') to get only the value of the field. Or if you want to get all values you can use formRef.current?.getData().

But, of couse, this methods return the some values that you get on form submit.

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

No branches or pull requests

2 participants