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
stormy-gold
stormy-gold3y 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?
unwilling-turquoise
unwilling-turquoiseOP3y 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
stormy-gold
stormy-gold3y ago
Omer
Omer3y 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?
unwilling-turquoise
unwilling-turquoiseOP3y ago
something like this but in refine
Omer
Omer3y ago
Oh i see. You can follow the Ant document. There will be no difference in your use with refine ⚡️
unwilling-turquoise
unwilling-turquoiseOP3y ago
This would work for me thanks
Omer
Omer3y ago
Wow, congrats!! 💯 How about creating an example for other refine users? It can be a good example for our other users 🍻 @srinivasarajui