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
sinsiterrulezsinsiterrulez 

Multi Select Picklist look and feel

Hi,

I have created a custom multi select picklist in VF using apex:selectlist & apex:selectOptions but I want the look and feel of the picklist as that provided by salesforce(the left pane with available values & right pane with selected values).

How can I achieve it?

 

Please Help!!!!!!!!!!!!!

bob_buzzardbob_buzzard
I managed to get something similar to the standard multi-select picklist by using two side by side selectlists, representing available and chosen, with buttons to move items between the two.  It requires some code, but wasn't too arduous.
sinsiterrulezsinsiterrulez

Thanks Bob,

 I too created my custom multi picklist!! :smileyhappy:

 

The problem which I'm facing is my multi Select picklist is that its a dependant thing & also the Javascript required to change the selected & unselected values is creating a problem in IE6.

  Can you please post your code for reference

bob_buzzardbob_buzzard

I'm afraid that I can't post the code, as that was written for a customer.

 

I can tell you that I gave up on the Javascript route, as I was encountering many problems with compatibility.  Everything happens in the controller and the selectlists are rerendered based on the user actions.

 

I also needed to have multiples of these on a single page, so a custom component that was pure VF and Apex was about the only solution that would work for me.

Message Edited by bob_buzzard on 03-04-2010 02:57 AM