Support » Plugin: HTML Forms » Multiple Select Dropdown

  • Resolved madhanbabu

    (@madhanbabu)


    How to send the Multiple selected Dropdown options to Email action?

    I have created the form which contain Multiple Select option Dropdown but the problem is when i try to sends the all fields details to my Mail i get only one option in the dropdown field but i have selected more than 5.

Viewing 3 replies - 1 through 3 (of 3 total)
  • madhanbabu

    (@madhanbabu)

    Yes I have Figure out this which we have to use array n name field.
    example:- if the name of the field is “drop” then we have to use the name as “drop[]”.

    Thank you.. 🙂

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hey Madhanbabu,

    Sorry for being so late to respond, but we have taken steps to ensure this is easier the next time it happens. It will be included in the next plugin update.

    https://github.com/ibericode/html-forms/commit/b6526494bd3be2f4bab71def206e9dca5e3cfdaf

    Cheers!

    First add options.

    add_option( 'clusters', 'End date.');
    register_setting( 'seqform_options_group', 'clusters', 'seqform_callback' );
    

    Multiple select
    <select name=”clusters[]” multiple=”multiple”>
    <option value=’one’>One</option>
    <option value=’two’>Two</option>
    <option value=’three’>Three</option>
    </select>

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.