Forums

Multi selection in Dropdown for Email Template

tyler 23 Nov, 2009
Hi Bob,
I've read through the forums, but haven't seen this question and I'm having problems. I've added the dropdown selection menu to my form and tweaked it a little to allow for multiple selections. In the email I receive at the end of the form, it only includes one selection from each menu as opposed to each selection they've made. How do I change this so the email includes all the selections? I've included the code I used to modify the dropdown below.

<div class="form_item">
<div class="form_element cf_dropdown">
<label class="cf_label" style="width: 150px;"></label>
<select class="cf_inputbox" id="select_0" size="5" title="" name="select_0" multiple>
<option value="Accountant">Accountant</option>
<option value="Administration">Administration</option>
<option value="Angel">Angel</option>
<option value="Banker">Banker</option>
<option value="Business Development">Business Development</option>
<option value="Busniess School">Business School</option>
<option value="Chamber of Commerce">Chamber of Commerce</option>
<option value="City Government">City Government</option>

Thanks
GreyHead 23 Nov, 2009
Hi Tyler,

You must use an 'array name' to get all the values returned. Just add [] to the input name name="select_0[]" and probably set ChronoForms to handle array values in the form General Tab.

Bob
tyler 23 Nov, 2009
Bob,
Great! Thanks a lot. I knew I was missing something simple.

Tyler
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}