Replies: 1 comment
-
Do you have a snippet of code you could share? How are you calling What is likely happening is that you wish to push not to the array of In that case, you need access to the - field: 'hobby'
+ field: 'hobby[i].hobbyValue', where i is the index of the desired hobby Array fields can help you access exactly the hobby you want. Consider reading this section of the documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a bit of a complex form im building with form composition. But the hurdle im getting to now is that I want to add to an existing object array without creating a new one, example:
This is the schema:
My form has a
+ Add Hobby
button to pushValue to array, following docs examples.the final result I want is this:
But I'm getting something like this:
I am using
<form.AppField/>
to then use my reusable inputs fields I've created. This works fine with other types of data. But can't seem to get it working with this array of strings in an object scenario.Thank you to anyone that can help!
Beta Was this translation helpful? Give feedback.
All reactions