Does Multiple select form work with Freeform?
Posted: 27 March 2008 08:23 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  36
Joined  2006-11-03

Hi,

I’m trying to use a multiple select form with freeform but it doesn’t seem to be working.  It’s just submi the last option but not all of them.  Here is the code:

<select size="5" name="form_acceptable" multiple="multiple" >
  <
option selected>Any</option>
  <
option>Book</option>
  <
option>Photocopy</option>
  <
option>Other (please specify)</option>
  <
option>Web Sites</option>
   </
select

Thanks

Profile
 
 
Posted: 27 March 2008 08:26 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Fodney,

You’ll need to add [] to your field name to accept multiple values:

<select size="5" name="form_acceptable[]" multiple="multiple" >
  <
option selected>Any</option>
  <
option>Book</option>
  <
option>Photocopy</option>
  <
option>Other (please specify)</option>
  <
option>Web Sites</option>
   </
select

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 27 March 2008 08:33 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  36
Joined  2006-11-03

That did it.  Thanks so much Pie Man!

Profile