You need to sign in to do that
Don't have an account?

Help with styling a multi-select picklist in an inputField
I'm having trouble styling a multi-select list properly in my markup. My table is as show below:
<apex:pageBlockTable value="{!component}" var="none" > <apex:column headervalue="What extra features does the windshield have? (select all that apply):" style="text-align:center;"> <apex:inputField value="{!component.Windshield_Features__c}"/> </apex:column> </apex:pageBlockTable>I simply want to increase the number of visible lines displayed to the user, as at the moment it is quite condensed. I've made the defalut value of the field 10, but it won't reflect that here. I've tried the style="size: 10" but that has no effect either. The only thing which seems to work is style="height:100px". However, that also enlarges the size of the selection buttons to the point that they look awful so I'm hoping someone knows a way to change the sizes independently because I even tried a styleClass to set the height but for some reason that only affected the button size rather than the table height.
Try below style: Important :
If this is what you were looking for then please mark it as a "SOLUTION" or You can Click on the "Like" Button if this was beneficial for you.
https://github.com/metadaddy-sfdc/Visualforce-Multiselect-Picklist
Ramu, I was trying to avoid going the custom table route if possible, since if it's already a field in salesforce we've created since it would be easier/faster to manage the items contained within.