Jump to content

Pass value from page to page

Recommended Posts

Hi everyone!

When being on a product page and clicking the "Send Inquiry" button, one is directed to a contact formula. I wish for the product name of the product the user was looking at, to be inserted into the 'subject'-field of the contact formula automatically. But I can't seem to figure out how to pass the product name from the product page to the contact formula.

Any tips is much appreciated!

Link to comment

I see you've added a link to each product detail page that links to a contact page. If you are happy to individually edit each link on each PDP then you'll be able to add a query parameter that passes a hidden form field to the form. This will allow you to include this information. I've liked to the support article that describes how to set this up.

If you'd prefer a prebuilt solution that automatically includes the product title and URL being viewed at the time, please take a look the Product Enquiry Form extension

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.