Tell us what you are trying to do?
I have created the CPT "company" and "subscriber".
they are related one to many.
Companies [0 .. 1] << subscriber [*]
A registered person can belong to a company and this is optional. There will be registrants who do not belong to a company, they are independent professionals.
My question is in the case of those registered who belong to a company, can I make a form in which I can create the company and the registered data simultaneously?
Is there any documentation that you are following?
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/
https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/
Is there a similar example that we can see?
no
What is the link to your site?
Its a local site
Hi there,
No there is no way to create the company and the registrant simultaneously.
Maybe you can think of having one form for the company and one form for the registrant and after the submission, you send the customer to the other form to complete.
Something like this method:
https://toolset.com/forums/topic/linking-parent-and-child-forms/page/2/#post-607526
I am not sure how it is similar to your use-case but to answer for your use-case, no it is not possible to do a same-time submission.
Thanks.
I decided to change the approach including company data into subscriber cpt.