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
niksssniksss 

Dependent picklist on Visualforce pages

How do I use dependent picklists on a Visualforce page? Do I need to code to ensure relevant LoVs are populated in the dependent picklist depending upon a value selected in the Controlling picklist?

 

Thanks. 

Edwin VijayEdwin Vijay

Hi.. Dependent Picklist is not supported in Visualforce as of now

 

 

You will have to write your own login to rerender the dependent picklist when the value of the Parent Picklist is changed..

 

Cheers!!

Edwin

ConejoConejo

http://wiki.developerforce.com/index.php/Extended_Functionality_of_Visualforce_-_Part_1

 

There is a nice write up how to do it here.

 

hth,

 

Rich C.

PremanathPremanath

Hi Dependent picklist is working now with out using controller

 

Just we can take the picklist fields

 

<apex:page standardController="Example1__c">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection >
                <apex:inputField value="{!Example1__c.Name}"/>
                <apex:inputField value="{!Example1__c.country__c}"/>
                <apex:inputField value="{!Example1__c.States__c}"/>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>