• I’m using the multi-select field, I want to have the following:
    <option value="200-Ice">Ice</option>

    However, I can’t figure out how to do this.

    Seems that pipes should work, but they do not.
    [select* product_interest id:00NG0000009gRH7 multiple "200-Ice|Ice" "220-Forestry"]

    This just shows
    <option value="200-Ice">200-Ice</option>

    Is it possible to have a different value than the option name with multi-select fields?

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

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

    (@takayukister)

    It’s not possible with Contact Form 7’s form-tags. Why not write HTML <select> tag directly instead of using form-tag?

    Thread Starter Thomas McMahon

    (@twistermc)

    So you’re saying I can put in regular form code within Contact Form 7 and it’ll magically work together?

    I didn’t know that.

    Thread Starter Thomas McMahon

    (@twistermc)

    How would I pull that out into my email then?

    <select id="1001001" multiple="multiple" name="1001001" title="Product Interest">

    Code in email doesn’t return the value from the item selected.
    [1001001]

    Do you have a help file for using your own HTML within Contact Form 7?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    The name and id can’t be “1001001”.

    http://www.w3.org/TR/html401/types.html#h-6.2

    ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens (“-“), underscores (“_”), colons (“:”), and periods (“.”).

    The solution with different values in select box works, but the user should requires to select at least one option from the menu. How can I implement require fields, if I use HTML-Tags instead Contact Form 7-Form-Tags?

    Many thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multiple Select | Different Option and Value’ is closed to new replies.