Form property of the field object is not set

Also, fieldReferenceTable will be an empty array if you try to access it before fields property is called.
Good example is initializing the form with values retrieved from API.