<p>It would be fairly easy to create a hidden field and read the page URL into it.
As for the title, is your form an embed inside the channel entries call? Then it's pretty easy to get the title as well. If not you may have to be a bit creative.</p>

<p>Check the hidden field config, it even tells you how to pull in the current url.</p>

CC BY-SA 4.0
2019-03-25T11:04:31.293Z
So would it be the following:
overrideValues: { currentPage: craft.app.request.absoluteUrl }
Dan Lee
CC BY-SA 4.0
2019-03-22T14:25:20.140Z
2019-03-22T14:25:20.140Z
Jim Wyse
<p>We are looking to place a contact form across all pages and want to integrate HubSpot. I noticed that there was the ability to match up the fields with HubSpot - which is great - my question is how do we pass through the current page's Title and URL the form is shown on? </p>

<p>Is there a way of matching the field that or is it done a different way?.</p>

<p>Thanks in advance.</p>

<plugin-freeform><freeform>
FreeForm and HubSpot - Current Page
# FreeForm and HubSpot - Current Page

(Asked by: username_0 on 2019-03-22)

We are looking to place a contact form across all pages and want to integrate HubSpot. I noticed that there was the ability to match up the fields with HubSpot - which is great - my question is how do we pass through the current page's Title and URL the form is shown on?

Is there a way of matching the field that or is it done a different way?.

Thanks in advance.

**Tags:** plugin-freeform, freeform


---

## 1 answers

### Answer by username_1 on 2019-03-22. Score: 1

It would be fairly easy to create a hidden field and read the page URL into it.
As for the title, is your form an embed inside the channel entries call? Then it's pretty easy to get the title as well. If not you may have to be a bit creative.

Check the hidden field config, it even tells you how to pull in the current url.

> **Comments:**
> **username_0**: So would it be the following: overrideValues: { currentPage: craft.app.request.absoluteUrl }  

---

