function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Scott0987Scott0987 

Make selectoptions scrollable.

I have a list of options that is rather large.  30 items or so.  I want it to display 5 or 6 of them and have the rest be available through a scroll bar.  I am using <apex:selectoptions> to populate the values.  It displays a large list.  Any idea how to make it scrollable? 

Best Answer chosen by Admin (Salesforce Developers) 
Laxman RaoLaxman Rao

Use this:

 

<apex:selectList size="5" multiselect="true">

</apex:selectList>

All Answers

Laxman RaoLaxman Rao

Use this:

 

<apex:selectList size="5" multiselect="true">

</apex:selectList>

This was selected as the best answer
Scott0987Scott0987

Laxman Rao wrote:

Use this:

 

<apex:selectList size="5" multiselect="true">

</apex:selectList>


Not sure how I missed that.  Feel pretty dumb now.  Thanks for the help.