<input type="hidden" id="current-url" name="current-url">.To capture the current article's URL in a Webflow form, you need to incorporate a way for the URL to be stored with form submissions. Here's how you can achieve this:
<input type="hidden" id="current-url" name="current-url"> to create a hidden field that will store the URL.
<script>
document.addEventListener("DOMContentLoaded", function() {
var currentURL = window.location.href;
document.getElementById("current-url").value = currentURL;
});
</script>(Note: This is for reference only; do not use as code block.)
To capture the current article's URL in Webflow forms, add a hidden field within the form and use JavaScript to dynamically insert the page’s URL into this field upon form submission. This setup allows you to receive the relevant URL in all form-related emails or database entries.