Forums

Contact Form 7
[resolved] Drop down list (12 posts)

  1. Unnar
    Member
    Posted 11 months ago #

    I love this plugin and I will probably use it quite a bit. There's just one thing I was wondering, is it possible for example to use a drop down list [ddl] showing something like:

    Person 1
    Person 2
    Person 3

    And then having some email linked to every person so that you could input an email for each person so that [ddl] would instead of giving you the persons name it would instead give his email address.

    Like it is now I'm just putting the email addresses in a drop down list but the other method would be preferred.

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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 11 months ago #

  3. Unnar
    Member
    Posted 11 months ago #

    Awesome, thank you. :)

  4. rivergal68
    Member
    Posted 9 months ago #

    How do I add a drop down menu in Contact Forms 7? All I want is preferred method of contact [phone, fax, or email].
    Really new to this and would appreciate a step by step. I already have the form filled out with name, address, email, phone and subject. This is the last thing I need. Thank you!

  5. Unnar
    Member
    Posted 9 months ago #

    You can go on the right side and press "Generate Tag" and pick "Drop-down menu".

    For example:

    [select* prefMethod
    "Phone"
    "Fax"
    "Email"]

  6. rivergal68
    Member
    Posted 9 months ago #

    Alright like I said newbie. I went to the drop Generate Tag & picked drop down menu. I copied everything that it asked me to fill out & pasted it here because when I went to look at the form all that it showed was "] instead of Preferred Method of Contact with the drop down. What did I do wrong?

    Required field?

    Name

    id (optional)

    class (optional)

    Choices
    [select* prefMethod
    "Phone"
    "Fax"
    "Email"]
    * One choice per line.

    Allow multiple selections?
    Insert a blank item as the first option?

    Copy this code and paste it into the form left.

    And, put this code into the Mail fields below.

  7. Unnar
    Member
    Posted 9 months ago #

    <p>Preferred Method of Contact:
    [select* prefMethod
    "Phone"
    "Fax"
    "Email"]</p>

    I think this is the code you're looking for unless I'm misunderstanding something. Just try copy-pasting that into your form and it should work.

  8. rivergal68
    Member
    Posted 9 months ago #

    Thank you so, so much! That worked perfectly, thank you for your patience!!

  9. Unnar
    Member
    Posted 9 months ago #

    You're welcome.

  10. Larry
    Member
    Posted 9 months ago #

    Is there a way to capture the left side of the pipe for recipients?

    Example: [select your-recipient "CEO|johndoe@example.com"
    "Sales|bettyjohnson@example.com"
    "Support|williampenn@example.com"]

    I know [your-recipient] in the Message Body would put in the email address for the selected recipient. I also want to be able to list the Title. Example: "Support" vs "williampenn@example.com".

    Is there a way to do this?

  11. subcutanea
    Member
    Posted 9 months ago #

    It's sort of along these lines and Unnar, you seem to know Contact From 7 very well...
    I'm trying to make a series of drop downs to display date selection.
    I have it all in place, but it is displaying in block form, eg:
    Day

    Month

    Year

    I'd like it to display inline:
    Day Month Year

    I've had a look through the style css and changed a couple fo things but it didn't seem to make a difference...do you have any ideas?
    (Unfortunately I'm building off localhost, so can't direct you to the site)

  12. Unnar
    Member
    Posted 9 months ago #

    I cannot find any way to do this easily, it seems that you would need to mess with the Javascript to make this work. I'll let you know if I find a solution.

Reply

You must log in to post.

About this Plugin

About this Topic