managerial-maroonM
Refine4y ago
6 replies
managerial-maroon

How to handle form with nested component?

Hello!

I need help regarding form handling with nested components.
Basically my form is composed of the following:
----------------------------------------
Form
--Header
---Field1
---Field2
---Field3
---Field4
---Field5
--Tabs
---Tab1(separate component)
----Field6
----Field7
----Field8
----Field9
----Field10
---Tab2(separate component)
----Field11
----Field12
----Field13
----Field14
----Field15
----------------------------------------

Question:
How can I pass the useForm to other components?
Is that the right way?

I tried to put the useForm in each components but upon saving I am not be able to pass the data of field6 to 15 I only get 1 to 5


Thanks
Was this page helpful?