CMS Development

ADuff
Member | Platinum Partner
Member | Platinum Partner

Add product title to enquiry form from product page

Hi,

 

I'm hoping to create a button which will add the title of a product to an enquiry form. The enquiry form will be on the enquiry page. I'm looking for the easiest way click a button on the product page, and the data be sent to the enquiry form page so when the user is ready to submit the form, they have a list of products they want to enquire about.

 

I'm open to marketplace modules or building this myself from scratch, any help would be appreciated.

0 Upvotes
2 Replies 2
Stephanie-OG
Key Advisor

Add product title to enquiry form from product page

You can do this by adding the value you want to populate in the form to the button's URL as a query string (see here).

 

So if the internal form field name is product_type and it's a dropdown with the product's internal value being ProductA, for example, your URL might look something like: 

 

 

https://www.website.com/form-page?product_type=ProductA

 

 


Stephanie O'Gay Garcia

Freelance HubSpot CMS Developer

Website | Contact

dennisedson
HubSpot Product Team
HubSpot Product Team

Add product title to enquiry form from product page

@Anton ,

Any brilliant suggestions for our friend here? 😀

0 Upvotes