Contact form 7- Multi File Upload - redirect to another page - Stack Overflow

admin2025-04-17  1

I want to automatically redirect to another page when I drag a file without pressing the send button. I don't really want anything else on the page except the drag and drop interface. Is this possible? I found a code to redirect when the send button is pressed, how can I rewrite it?

<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
setTimeout( () => {
location = '/';
}, 3000 ); // Wait for 3 seconds to redirect.
}, false );
</script>
转载请注明原文地址:http://anycun.com/QandA/1744866959a88737.html