Access sibling field in an array field from a custom component #1900
-
Hi! Consider I have the following collection Recipes:
How can I access the 'name' field inside the custom component 'IngredientUnit'? Using 'useFormFields' I am able to access the 'title' field, but not 'name'. Thank you!!! |
Beta Was this translation helpful? Give feedback.
Answered by
jessrynkar
Feb 9, 2023
Replies: 1 comment 1 reply
-
Hey @cerize - the useForm() function will allow you to access the sibling data. Not sure how your custom field is setup but it would look something like this: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zubricks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @cerize - the useForm() function will allow you to access the sibling data. Not sure how your custom field is setup but it would look something like this: