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
RiapatelRiapatel 

VF page dependent picklist

Hi All, 
I am looking to create a dependent relationship between state and city in VF page. Can anyone help me with the code? thanks.
NagaNaga (Salesforce Developers) 
Hi Riapatel,

This functionality has been there since API 19.0 so you don't really need to write any code for this.

If you still have a use case which warrants handling the dependent picklist behavior through your Apex code, I'd recommend you go through this tutorial on how to do so.

http://blog.deadlypenguin.com/blog/2012/07/09/dynamic-dependent-picklists-in-salesforce/

Best Regards
NagaKiran