Skip Navigation

[Resolved] creating forms to add content to and update multiple post types

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 3 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 8 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2559663

Is it possible for me to use toolset form to enter or edit information in multiple post types, that have relationships?

For example, if I had a post of type organizations when adding a new organization, can I have it add one more more entries in contacts, email address and address post types? Each of these 3 post types have a relationship to organizations.

Also, when editing, I'd like to do the same. Essentially, each org could have one ore more entries in each of the other post types. multiple addresses, email addresses and contacts.

Please let know if this is possible and where I'd look to find out how to do it.

Thanks.

#2560083

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

No, you will have a separate form for each post type. You always can add a link to the other form.

For example, if you want to add an organization and the customer needs to add a contact first, add a link at the top of the form to send the customer first to the contact form.

Also if the parent is already created, then you can use the method below for the child form to select the parent one:

https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/

Thanks.

#2561627

I guess my last response didn't submit.

When adding the link to the next form, would there be a way to pass parameters from the first form so I can link them together? I don't necessarily want to expose extra information on the second form that may only be pertinent to the person submitting the first form.

Also, can I have more than one form to update different or shared sets of fields in one post type? Instead of building it using proper database design, I can dump everything into one post type and then have multiple forms, based on the audience, fill out the parts I need from them. Then, I can create my views and display the results as needed. It may not be pretty, but maybe it will be doable.

Is toolset planning to build any more sophisticated features into the system so we can create true relationships and build more elegant solutions?.
Would you know of any other WP tool I could use that could allow me to build more sophisticated solutions?

Thanks.

#2561761

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

For the first question, it is impossible to do so using Toolset built-in tools. It is possible using custom code which is outside of our support scope and you are welcome to hire a developer for:

https://toolset.com/contractors/

You will need to use the hook below:

https://toolset.com/documentation/programmer-reference/cred-api/#cred_success_redirect

And have a code to get the information after that.

For the second question, it is not possible to submit data partially on the reform as the form is to submit a post.

There is no plan to have partial submission and you can ask for such a feature here:

https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

I am not aware of other tool to be able to do such a thing, my guess is that you will need custom PHP development at the end of the day.

Thanks.