WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Need help customizing contact form to allow downloads after user fills in info (11 posts)

  1. wpguru2
    Member
    Posted 5 months ago #

    Hi all, I need help customizing the contact form on my website. Basically what I'm trying to do is have a basic form where the user will fill out their Name and email which will both be required, and then right below that is a drop down menu where they can select which file they want, and it will either email the file to them or allow them to download it right away after they hit submit. But before they are allowed access to the files, they have to fill out their name and email, so that the files can be emailed directly to them. How can I setup contact form 7 to do this?

    If you look on the website http://idealogicbrands.com, on the main homepage, on the right sidebar you will see what I'm talking about. I want the user to be able go get a copy of the files only if they sign up for it by entering their name and email.

    http://wordpress.org/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 5 months ago #

  3. wpguru2
    Member
    Posted 5 months ago #

    Thanks, but how do I allow access to have it send the file ONLY if the user fills out his name and email address and hits the SEND button?

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 5 months ago #

    Make the name and email address fields required.

    http://contactform7.com/text-fields/

  5. wpguru2
    Member
    Posted 5 months ago #

    Okay I have read the link about file uploading attachments. But it doesn't explain how I a user can fill out their name/email address, select from a drop down menu a file they want, hit submit, and have it send the user an email with that file that they selected from the drop down menu? I am having trouble getting this setup properly. Would appreciate some help. I have 4 pdf files that I want to offer my users to be able to get after filling out the required name/email fields.

    This is what I have so far:

    <p>Your Name (required)
    [text* your-name] </p>

    <p>Your Email (required)
    [email* your-email] </p>

    <p>[select* menu-198 "File 1" "File 2" "File 3" "File 4"]</p>

    <p>[submit "Send"]</p>

    But where do you go to specify the links to the pdf files and have them attached to the email? They are located on my web host. I'm not sure how to do this.

  6. wpguru2
    Member
    Posted 5 months ago #

    do I add this to the additional settings: area?

    on_sent_ok: "location = 'http://url.com/file1.pdf';"
    on_sent_ok: "location = 'http://url.com/file2.pdf';"
    on_sent_ok: "location = 'http://url.com/file3.pdf';"
    on_sent_ok: "location = 'http://url.com/file4.pdf';"

  7. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 5 months ago #

    I don't get what is the problem you're trying to solve. Already you have made it possible for only users who entered those required fields to submit and access the attached files.

    <p>Your Name (required)
    [text* your-name] </p>

    <p>Your Email (required)
    [email* your-email] </p>

  8. RitaJoC
    Member
    Posted 5 months ago #

    The above instructions are for uploading documents, but how do you download documents after hitting the submit button? Thanks.

  9. wpguru2
    Member
    Posted 4 months ago #

    Exactly, I want it to have it where the user can select which file they want to download after filling out the required info. Not attach a file and upload it.

  10. Jason Atwater
    Member
    Posted 3 months ago #

    I'm trying to do the same thing. You think it would be easy. I've looked at a couple plugins and this one seems like it should work and is something that a lot of people would want to do. Please post what your solution was.

  11. buzztone
    Member
    Posted 3 months ago #

    @RitaJoc, @Jason Atwater

    You are possibly better looking at something like Easy Digital Downloads for making downloads available - that's what it's made for.

Reply

You must log in to post.

About this Plugin

About this Topic