You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, find that function changeValue, checks state.fields[name]. In my case form has routes and some mutation logic take place in component that does not have any or component. So mutators don't work.
The text was updated successfully, but these errors were encountered:
It, by design, does not allow setting values for fields that are not registered. You have fields that are not registered for which you would like to modify the value?
We have something like wizard form. Pages of form renders by it own routes. And final save page has it own route. So when submitting, we need to do some logic, and yes fields are not registered in moment when save page is active.
We have the same use case and ran into it with File uploads. The graphql/model representation of an uploaded file vs an HTML File object are different, so we had to manipulate the underlying values model. We ended up adding Field components that have no visibility so we could subscribe, and mutate.
I'm about to hit another:
We have arrays of Affiliations and Addresses, each has a transient field deleted which is never visible, but allows a user to add/delete at-will then submit at the end of their work (contact form). The backend processes the additions/deletions based on this transient field, but we would never want to show it.
bug report or a feature
Hi, find that function
changeValue
, checks state.fields[name]. In my case form has routes and some mutation logic take place in component that does not have any or component. So mutators don't work.The text was updated successfully, but these errors were encountered: