final-form / final-form

🏁 Framework agnostic, high performance, subscription-based form state management

Home Page:https://final-form.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON-key on empty fields

chmich opened this issue · comments

Are you submitting a bug report or a feature request?

Feature-Request

What is the current behavior?

When a form is submitted and a string-input has no content, there is no json-key for this field inside the JSON

What is the expected behavior?

a posted question with no content is also a answer.
json-key should only be removed if the input is removed (not: invisible).
So, on json-keys you could see which questions are posted

Sandbox Link

In our case: We have a dynamically form that can change from time to time. We have to be able to see which questions are posted and which are answered.
We can realize that based on the existing feature, but it would be really easier with this above mentioned feature.

What's your environment?

Rails, React, Redux

Many Thanks for this really helpfully library