• oneexception

    (@oneexception)


    I’m looking to offer users on my website the chance to download files after they have completed a simple form fill.

    The file will download immediately after they have submitted the form, can i do this with contact form 7 by linking the file to the submit button some how

    thanks

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • davmerit

    (@davmerit)

    You can make use of on_sent_ok in the additional settings the CF7. You can do something like this

    on_sent_ok: "location = 'link-to-the-download-file';"

    Hi there,

    Thanks for that useful info. I’d like the downloading of the file (a PDF) to happen in a different window. I tried something like this:
    on_sent_ok: “location = ‘link-to-the-download-file’; target = ‘_blank'”

    It didn’t work ??

    Any suggestions?

    thanks in advance

    RF

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Download a file on form submit?’ is closed to new replies.