I have a CPT "Tours" for my travel agency site. In the home page I have a filterable view of all ther tours, if you click one of them you can see the tour details, i.e. hidden link. At the bottom of every tour, the tour template shows the price and a button, "Estoy interesado / I'm interested". I need to make a new template page that, when a user clicks on the "I'm interested" button shows the tour info (name, price, duration, etc) plus a form where the user give us some info about the number and age of passengers, prefered departure date and personal data. How can I can do that? I have attached a figma mockup of the form once clicked the button.
I tried to search in the toolset support tickets database but I couldn't find anything similar.
hidden link
Hello,
In my opinion, you can try these:
1) add a child post type, for example "Im-interested", add custom fields: age of passengers, prefered departure date and personal data
2) Setup one-to-many relationship between post types "tour" and "Im-interested"
3) In the single "Im-interested" post, display a child post form link for creating new "Im-interested" post:
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/
Thank you Luo, I'll try to make an implementation of what you're proposing. Please leave this ticket open, I'm pretty sure I will need assistance over this later...
OK, I have marked this thread as "Waiting for feedback" status, you can update here if still need assistance.