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