Field names are strings that allow dot-and-bracket syntax, allowing you to create arbitrarily deeply nested fields. There are four main things you need to understand about how field names are used to read and write the form values in Final Form.
[are treated the same.
Numberkeys will result in array structures. Why?
undefinedto a field value deletes any empty object – but not array! – structures. Why?
It is very similar to Lodash's
_.set(), except that empty structures are removed. Let's look at some examples:
|Field Name||Initial Structure||Setting Value||Result|
Here is a sandbox that you can play around with to get a better understanding of how it works.