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
❤Code❤Code 

display dependent picklist in visualforce page

Hi All,

I have 3 picklist fields f1,f2,f3 which are dependent pciklist. f2 is dependent on f1 and f3 is dependent on f2. I want to display these 3 fields in a vf page.

Can anyone please share me some code.

Regards
RishavRishav
Hii ,
it is possible without code also. 
configure one depndent picklist in your object. and use the parent object as <inputfield> , all dependet will appear automatically, 
To create dependent picklist in standard way follow this link ;
 https://help.salesforce.com/HTViewHelpDoc?id=fields_defining_field_dependencies.htm
http://www.crmsalesforcetraining.com/picklist-controlling-picklist-dependent-picklist-salesforce/


if you want to create dependent picklist in dynamic way in apex then please follow this link 
http://blog.deadlypenguin.com/blog/2012/07/09/dynamic-dependent-picklists-in-salesforce/
https://www.minddigital.com/how-to-create-dynamic-dependent-picklist-of-objects-within-salesforce/




Thanks
Rishav