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
ss123ss123 

hide values from multiselect picklist when a value from another picklist has selected

Hi SO I have a multiselect picklist on VF page
everything is goog all i need is to hide some values from picklist when a value from another picklist has selected
So there are two picklist
A (category)has categories
B (Cancellation reasons)has values for all those categories in one picklist
need to select multiple values from multiple categories
category  is only for display nothing else
now i need to show certain values depending upon the category selected
from picklist B
any help will be great

Identity Verification(category)
Did not provide identity documents
Incorrect customer phone number
Couldn't reach CX after multi attempts
Could not verify stated address

Income Verification(category)
Did not provide income documents
Could not verify income (Microbilt)
Could not verify stated income

ss123ss123

this is my visula force

 <apex:pageBlockSection columns="1">
            <apex:pageBlockSectionItem >
                    <apex:outputLabel >Status</apex:outputLabel>
                    <apex:inputField value="{!Listing.Status__c}"/>
            </apex:pageBlockSectionItem>
            <apex:pageBlockSectionItem >
                <apex:outputLabel >Category</apex:outputLabel>
                <apex:inputfield value="{!Listing.Category__c}"/>
            </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel >Cancellation Reason</apex:outputLabel>
            <apex:inputfield value="{!Listing.Cancellation_Reason__c}">
            <apex:actionSupport event="onchange" reRender="newPicklist"/>
            </apex:inputField>    
       </apex:pageBlockSectionItem>