current-page-url
).</body>
tag section to populate the hidden field with window.location.href
.To capture the current article's URL in Webflow Forms, you need to use a hidden field and custom JavaScript to populate it dynamically. This ensures that when a user submits a form, the URL of the page they were on is included in the submission.
current-page-url
).Go to Page Settings for your template or the page where the form appears.
Scroll down to the Before tag custom code section.
Paste the following script:
```javascript
```
Save the changes and publish the site.
By adding a hidden field and a JavaScript snippet, your Webflow Form will automatically capture the current article’s URL upon submission. This helps you track which page a user was on when they submitted the form, making follow-ups more effective.