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 >
<table>
<tr>
<td>
<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:selectList>
</td>
<td>
<apex:panelGrid >

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

</apex:selectList>
</td>
</tr>
</table>
</apex:form>
</apex:page>

Best Answer chosen by Admin (Salesforce Developers) 

All Answers

Damien_Damien_

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