Skip Navigation

[Resolved] Select CPT items from archive page and include them in a contact form

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2685304

Tell us what you are trying to do?
I've create a list of audits and I need to select one or more audits (CPT) and then include the title of each one in a contact form. I only be capable of doing it one by one at a time and I would like to know if it's possible to select multiple audits and include them (the post title) in a contact form.

Is there any documentation that you are following? I didn't found any documentation about this particular case.

Is there a similar example that we can see? You can see and example here: hidden link

What is the link to your site?
hidden link

Thanks

#2685435

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What exactly the value you want to store when you select multiple audits - do you want to store post IDs or post title?

Do you have any post relationship created between audits and contact post type using Toolset?

Is the contact form created using Toolset - if yes: how exactly you want to store the multiple audit Ids? if you can share problem URL where you added your contact form and tell me the whole flow and how exactly you want to save the information in the backend for the multiple selected audits I will first review that information and will get back to you.

In addition to that - Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#2685746

The value I want to store or rather capture in the form is the post title or multiple post titles.

I haven't created any post relationship. I have insert a contact form in the CPT page template.

The contact form is created using Contact Form 7 plugin with Contact Form 7 - Dynamic Text extension that captures the post title.

Workflow
1. User consult a list of audits hidden link
2. User selects the audit that whants to request. Then press the button SOLICITAR (request)
3. hidden link User fills the form and submits it.
4. The company manager recibes the request email with a list of audits that user is interested in.

If there's a better option to configure this workflow please tell me, this is my first time using toolset and I'm learning how to use it propertly.

#2685753

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Toolset Forms allow you to create post forms and also you can configure the email notifications with it.
- https://toolset.com/course-lesson/front-end-forms-for-adding-content/
- https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/

Here are few related ticket that might help you;
- https://toolset.com/forums/topic/building-a-basic-contact-form/

However - Even Toolset do not have such feature that you can select multiple posts and submit them in one go and redirect them to another page. However - Toolset is scalable but it will require to use some custom hooks and custom code to achieve what you are looking for.

A similar request you can see here:
- https://toolset.com/forums/topic/form-to-update-multiple-records/#post-2682438

Where if you want to build such feature using Toolset, you will require to create post edit form as motioned with the above link and you can use the view to display your post where you will offer the selection of the post as checkbox per post and user will select the desired post and submit the form and it will be redirect you on the page where you will have the contact form.

Later - you can use the Toolset Form hook 'cred_success_redirect' to redirect user to the page where you added the contact form:
- https://toolset.com/documentation/programmer-reference/cred-api/#cred_success_redirect