You need to sign in to do that
Don't have an account?
niksss
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.
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
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.
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>