Skip Navigation

[Resolved] passing data from cpt to a form

This thread is resolved. Here is a description of the problem and solution.

Problem:
I am creating a site with artworks.
Each artwork is a post with CPT Exhibitions

I would like people to click a button and it takes them to a form so they can ask the buy the artwork.

I would like the catalogue number and title from the post to automatically appear on the form, so they can just add their personal details.

Solution:
Toolset Forms are bound to custom post types. You will need to create an additional custom post type "Messages" for visitors form submissions. I believe the solution in the following ticket is very close to your use case
https://toolset.com/forums/topic/specific-contact-form/

Relevant Documentation:
- https://toolset.com/documentation/user-guides/#cred-topics
- https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/
- https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by janeC-2 4 years, 8 months ago.

Assisted by: Jamal.

Author
Posts
#1581807

Hi, I am creating a site with artworks.
Each artwork is a post with CPT Exhibitions

I would like people to click a button and it takes them to a form so they can ask the buy the artwork.

I would like the catalogue number and title from the post to automatically appear on the form, so they can just add their personal details.

Is this possible?

I'm using block editor

#1581851

another option would be to have a form on the actual post and it would pick up the catalogue number - the person would enter name, email, phone and click submit

Is there a way for the catalogue number field to be picked up?

The site is publicly available: hidden link

#1582247

Hello and thank you for contacting the Toolset support.

Toolset Forms are bound to custom post types. You will need to create an additional custom post type "Messages" for visitors form submissions. I believe the solution in the following ticket is very close to your use case
https://toolset.com/forums/topic/specific-contact-form/

Please check it and let me know if you have any doubts about it.

#1583009

My issue is resolved now. Thank you!