How to download a file after form submission
-
Hi,
I need to allow people to download a specific file (PDF) after they submit the form. Right now, I am using this:
document.addEventListener( 'wpcf7mailsent', function( event ) { location = '/link_to_file/20181026.pdf'; }, false );
This is opening the file in the browser but I need this to be downloaded to a user’s computer after they submit the form. How do I do that?
Thanks!
- The topic ‘How to download a file after form submission’ is closed to new replies.