• Bittabola

    (@bittabola)


    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!

    • This topic was modified 6 years ago by Bittabola.
  • The topic ‘How to download a file after form submission’ is closed to new replies.