(function() {
// Function to capture URL when DOM is ready
function captureFormURL() {
var urlField = document.getElementById('00NQw00000572Jz');
if (urlField) {
urlField.value = window.location.href;
}
}
// Ensure the script runs after DOM is loaded
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', captureFormURL);
} else {
captureFormURL();
}
})();