WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
contact form 7 - Dropdown (9 posts)

  1. dominikest
    Member
    Posted 2 years ago #

    How can i use in Contact Form a dropdown like this:

    <select name="mydropdown">
    <option value="Milk">Fresh Milk</option>
    <option value="Cheese">Old Cheese</option>
    <option value="Bread">Hot Bread</option>
    </select>

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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

  3. dominikest
    Member
    Posted 2 years ago #

    thanks for Reply. But i want to use it like this
    <select name="mydropdown">
    <option value="Milk">Fresh Milk</option>
    <option value="Cheese">Old Cheese</option>
    <option value="Bread">Hot Bread</option>
    </select>

    Text fresh Milk .. and the Value Milk? 2 Seperate text's

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    Just write it in the form.

  5. dominikest
    Member
    Posted 2 years ago #

    Copy and Paste the HTML Quelltext?

  6. ndelag
    Member
    Posted 2 years ago #

    I have the same problem :
    <div style="display:none" id="coursc">
    <p><label for="rythme">Rythme </label>[select rythme include_blank "15h + 5h de cours particulier" "15h + 10h de cours particulier"]</p></div>

    I want users see "15h + 5h de cours particulier" but I just want receive 5 in the email

    I don't understand how to adapt the html code.

    Please help me

  7. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    You can use pipes for that.

    http://contactform7.com/blog/2009/11/26/selectable-recipient-with-pipes/

    I want users see "15h + 5h de cours particulier" but I just want receive 5 in the email

    Change the tag to this:

    [select rythme include_blank "15h + 5h de cours particulier|5" "15h + 10h de cours particulier|10"]

  8. ndelag
    Member
    Posted 2 years ago #

    so easy!

    Thank you very much Takayuki Miyoshi

  9. Martin
    Member
    Posted 2 years ago #

    This just saved me loads of time, thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic