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

Multipicklist in PageBlock Table

Hi ,


   I have a requirement where I need to display a multipicklist in a pageblock table. But my

issue is i have the field called DocumentFmlyName__c. Based on this my data in

multi select picklist( Documents__c ) should change and this should happen while displaying itself.

It should not show other values which are not relevant in the available picklist. Is there any

other workarounds that i can do?


 <apex:pageBlockTable  title="Check List" value="{!objchecklist}" var="chk">

     <apex:column >
                     <apex:facet name="header">Document Family</apex:facet>
                     <apex:outputField value="{!chk.DocumentFmlyName__c}"/></apex:column>
                    <apex:column >
                      <apex:facet name="header">Child Documents</apex:facet>
                    <apex:inputField value="{!chk.Documents__c}"/></apex:column>




Please let me know how can I accomplish this


Since you are using <apex:inputField> it's going to use the underlying picklist data for Document__c and there's no easy way to control the options in that list.


You will have to create a multi select picklist yourself.