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
SFDC StudentSFDC Student 

how to create dynamic multiselect picklist

Ankit AroraAnkit Arora

You can use this code to display the multi select picklist and to get the option dynamically you can bind it with the list (YourList) in controller which will provide the options dynamically.

 

<apex:selectList multiselect="true" size="5">
     <apex:selectOptions value="{!YourList}"/>
</apex:selectList>

 

Thanks
Ankit Arora
DhairyaDhairya

Are you aware with Apex/Visualforce?

SFDC StudentSFDC Student

Yes. I am aware.

 

 

xwzuxwzu

Hi,



 

This is Venkat. I have addmaterials button , some materials(like pen, paper etc),and a  Conf_items  juntion object(for campain and materials)  when i add materials using add materials button I want to populate   multi select picklist on conf_items with seleted materials .And the client want to select  the items which are there in multi select picklist .I want apex and visual force code for this. reply as soon as posssible.