• Hi

    I’ve installed Email before Download, Contact form 7, Download Monitor and Custom Sender for Email Before Download.

    I’m currently using it on this page: https://www.littlepeoplemusic.com/fbtab/free-muzak

    It seems to work for the most part, however 2 emails get sent out: 1 html email (the one i want) and 1 text email (which i don’t need). I can’t work out why 2 emails are being sent.

    Also, I’m trying to figure out how to hide the name and email field after the form is submitted. I tried adding the following code to the additional setting tab of the contact form with no success: on_sent_ok: “document.getElementById(‘contactform’).style.display = ‘none’;”

    Any tips on how to achieve this?

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • To get just the form to disappear after pressing Submit put this css in some css file somewhere that gets pulled in for that page:

    
    .wpcf7-form.sent
    {
        display:none;
    }
    

    As for the 2 emails, that is normal behavior. One email is sent by email-before-download.php and that is the one that goes to the email address that the website visitor types into the form displayed on your website. The other email is what I call the “notification email”. That one is sent by CF7 and the stuff that you configure on the Email tab of the CF7 screen in your wordpress admin controls that email. Thus, if you don’t want that email you can configure it to email to some account that you never check by putting an email address in the To: field (on that Email tab in your CF7 form in the configuration screens for it).

    Thread Starter littlepeoplemusic

    (@littlepeoplemusic)

    Great stuff. I’ve managed to sort both issues in 5 mins. Thank you so much.

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

The topic ‘sends 2 emails at once + hiding fields’ is closed to new replies.