• bingram
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi there.

 

ApexPages.currentPage().getParameters() returns a Map<String, String>. But I have an HTML select field on my page which accepts multiple values:

 

 

<select size="7" name="a0780000004jDTQAA2" multiple="true"> <option value="a">a</option> <option value="b">b</option> <option value="c">c</option> </select>

 

Note that this is really plain old HTML in my VF page, not an <apex:inputField> tag. If I select two values in this field and submit the form, the browser will send both values. But in Apex code in my controller, I only have access to the first value (ie. it's Map<String, String>, not Map<String, List<String>>).How do I get access to what was really posted in the form submission?

 

Thanks.