<script>
document.addEventListener(‘DOMContentLoaded’, function() {
// Check if the URL contains ‘trigger=true’
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.get(‘trigger’) === ‘true’) {
// If ‘trigger=true’ is present, auto-submit the form
// Adjust the selector to match your form
document.querySelector(‘.wpcf7-form’).submit();
}
});
</script>