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
Sami Ullah AzamSami Ullah Azam 

Show picklist fields based on selected value of other picklist.

I am having 5 picklists in the visualforce page. The first picklist have 2 values (e.g Product 1, Product 2). When the product 1 value selected then it will show only 2 remaining picklists and thier values but when product 2 is selected it should show remaining 4 picklist fields how can I do that. Please help. My Vf Code is.
<apex:page StandardController="Account" extensions="accpickvalues">
    <apex:form >
<apex:pageBlock mode="edit">
        <apex:message id="msg" />
        <apex:pageBlockSection title="Select Model Attributes" >
            
            <apex:inputField value="{!c.Valve_Series__c}"/>
            <apex:inputField value="{!c.Model__c}"/>
              <apex:inputField value="{!c.Valve_Type__c}"/>
            <apex:inputField value="{!c.Body_Size__c}"/>
            <apex:inputField value="{!c.Body_Material__c}"/>
      
            </apex:pageBlockSection> 
        </apex:pageBlock> 
 </apex:form>
</apex:page>