Answers.Body: <p>It's definitely possible, your HTML is just a little off...</p>
  
  <p>When dealing with a dropdown menu, the <code>name</code> attribute should be part of the <code>select</code> tag, not each individual option:</p>
  
  <pre><code>&lt;select name="message[model]"&gt;
    &lt;option value="——" selected="selected"&gt;Please select...&lt;/option&gt;
    &lt;option value="volvo"&gt;Volvo&lt;/option&gt;
    &lt;option value="saab"&gt;Saab&lt;/option&gt;
    &lt;option value="mercedes"&gt;Mercedes&lt;/option&gt;
    &lt;option value="audi"&gt;Audi&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-04T02:43:02.603Z
Answers.LastActivityDate: 2014-10-04T02:43:02.603Z
Answers.UserDisplayName: Lindsey D
Body: <p>The <a href="https://github.com/craftcms/contact-form" rel="nofollow noreferrer">GitHub page</a> shows how to add additional fields as input fields or checkboxes. But I can't figure out how to add drop-down fields. Is this possible?</p>
  
  <pre><code>&lt;select&gt;
    &lt;option value="——" selected="selected"&gt;Please select...&lt;/option&gt;
    &lt;option name="message[model][]" value="volvo"&gt;Volvo&lt;/option&gt;
    &lt;option name="message[model][]" value="saab"&gt;Saab&lt;/option&gt;
    &lt;option name="message[model][]" value="mercedes"&gt;Mercedes&lt;/option&gt;
    &lt;option name="message[model][]" value="audi"&gt;Audi&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Thanks!</p>
  
Tags: <plugin-contactform>
Title: Adding a drop-down to Contact Form plugin
ThreadText: # Adding a drop-down to Contact Form plugin
  
  (Asked by: username_0 on 2014-10-03)
  
  The [GitHub page](https://github.com/craftcms/contact-form) shows how to add additional fields as input fields or checkboxes. But I can't figure out how to add drop-down fields. Is this possible?
  
  ```
  <select>
    <option value="——" selected="selected">Please select...</option>
    <option name="message[model][]" value="volvo">Volvo</option>
    <option name="message[model][]" value="saab">Saab</option>
    <option name="message[model][]" value="mercedes">Mercedes</option>
    <option name="message[model][]" value="audi">Audi</option>
  </select>
  
  ```
  
  Thanks!
  
  **Tags:** plugin-contactform
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-10-04. Score: 7 | Accepted answer
  
  It's definitely possible, your HTML is just a little off...
  
  When dealing with a dropdown menu, the `name` attribute should be part of the `select` tag, not each individual option:
  
  ```
  <select name="message[model]">
    <option value="——" selected="selected">Please select...</option>
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </select>
  
  ```
  
  
  ---
  
  