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
vasu takasivasu takasi 

How to add one selectlist values to another selectlist

hi i am trying to tranfer values between two different selectLists. but i have not getting any idea.

Please help me.


<apex:page >
<apex:form >
<apex:selectList multiselect="true" SIze="1">
<apex:selectOption ItemValue="ONE" ></apex:selectOption>
<apex:selectOption ItemValue="TWO" ></apex:selectOption>
<apex:selectOption ItemValue="THREE"></apex:selectOption>
<apex:selectOption ItemValue="FOUR"></apex:selectOption>
<apex:panelGrid >

<apex:commandButton value="Add"/>
<apex:commandButton value="Remove"/>
<apex:commandButton value="up"/>
<apex:commandButton value="Down"/>
<apex:selectList multiselect="true">


Best Answer chosen by Admin (Salesforce Developers) 

All Answers


Just have your controller grab the selected values from the first list and put it into the second list on a button press or something similar.

vasu takasivasu takasi

how to grab selected values