dependent-tan
dependent-tan2y ago

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.
8 Replies
foreign-sapphire
foreign-sapphire2y 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?
dependent-tan
dependent-tan2y 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
foreign-sapphire
foreign-sapphire2y ago
Omer
Omer2y 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?
dependent-tan
dependent-tan2y ago
something like this but in refine
Omer
Omer2y ago
Oh i see. You can follow the Ant document. There will be no difference in your use with refine ⚡️
dependent-tan
dependent-tan2y ago
This would work for me thanks
Omer
Omer2y ago
Wow, congrats!! 💯 How about creating an example for other refine users? It can be a good example for our other users 🍻 @srinivasarajui