Adding multiple child entities during creation of Parent entity.

I have requirement where I need to add multiple phone numbers to a user before we save the user create/edit form. Can you point me to some resources which would address such a use case using refine.
S
sensitive-blue586d ago
Hey @srinivasarajui, I'm asking for a more detailed understanding. Do you want to send request the user's phone values before creating or editing a user record?
M
metropolitan-bronze586d ago
I want to add multiple phone numbers before I do post to the backend to create the user. So for user i need to add multiple numbers and create the user in one go
S
sensitive-blue586d ago
O
Omer586d ago
useForm | refine
useForm is used to manage forms. It uses Ant Design Form data scope management under the hood and returns the required props for managing the form actions.
FAQ | refine
How can I change the form data before submitting it to the API?
M
metropolitan-bronze586d ago
something like this but in refine
O
Omer586d ago
Oh i see. You can follow the Ant document. There will be no difference in your use with refine ⚡️
M
metropolitan-bronze585d ago
This would work for me thanks
O
Omer585d ago
Wow, congrats!! 💯 How about creating an example for other refine users? It can be a good example for our other users 🍻 @srinivasarajui