pageURL
and leave its value blank.window.location.href
.{{pageURL}}
for visibility in form submission emails.To capture the current article’s URL in Webflow Forms and receive it via form submission email, you can pass the page URL to a hidden field in the form using JavaScript.
pageURL
(not just the Label).Go to Page Settings or use an Embed element if it’s a reusable blog component.
Add this script inside an Embed with <script>
tags (or add to Project Settings > Custom Code > Footer if site-wide):
```
```
This script finds the hidden input with name="pageURL"
and sets its value to the current page’s full URL.
pageURL
.pageURL
where you want in the email."Article URL: {{pageURL}}"
To capture an article’s URL in Webflow Form submissions, add a hidden input named pageURL
, then use JavaScript to dynamically populate it with window.location.href
. Update email templates to include this value for better visibility when following up.