• Resolved TaddyWP

    (@taddywp)


    Hi,

    in CF7 i use the <select>-attribute instead of [select…] because i use optgroup and because i can set a placeholder. But unfortunately i don’t get all chosen options in my received email. I only get 1 chosen option.

    I have the following lines in formular tab of CF7:

    <select name="myDropDown" multiple data-placeholder="Choose your option">
    <optgroup label="Category1">
        <option>Option1</option>
        <option>Option2</option>
        <option>Option3</option>
        <option>Option4</option>
    </optgroup>
    <optgroup label="Category2">
        <option>Option1</option>
        <option>Option2</option>
        <option>Option3</option>
        <option>Option4</option>
    </optgroup>
    </select>

    And the following line in email tab (message body) of CF7:

    Chosen option: [myDropDown]

    What do i have to do to get all chosen options?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    <select name="myDropDown" multiple data-placeholder="Choose your option">

    Append [] to the name like this:

    <select name="myDropDown[]" multiple data-placeholder="Choose your option">
    Thread Starter TaddyWP

    (@taddywp)

    yahooooooooooooooooooo :O

    Perfectly, thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get all chosen options in mail with other select attribute’ is closed to new replies.