on-internet
← Community

get selected values of MultiSelect Picklist in VisualForce

Stack Overflow ·

I have multiselect picklist and I want to get selected values for insert and update operation. <apex:page standardController="Change_Request__c" sidebar="false" extensions="Change_RequestController"> <apex:selectList label="Select Pasenger(s)" value="{!Change_Request__c.Passenger_Name__c}" multiselect="true" onfocus="getSelectedID('{!$Component.empid}');" > <apex:selectOptions value="{!pax}" /> </apex:selectList> And this is my extension: public class Change_RequestController { private final Change_Request__c changer; public List<selectOption> pax; public Change_RequestController(ApexPages.Sta

Comments

Sign in or sign up to comment and upvote.

No comments yet.