Standard approach: 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/
OR 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/
Please let me know if the helps.
As a common practice, if your question is answered, please choose 1 best answer. Additionaly you can give every answer a thumb up if that answer is helpful to you.
some sample code please
Hi Rupesh,
Standard approach:
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/
OR 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/
Please let me know if the helps.
As a common practice, if your question is answered, please choose 1 best answer.
Additionaly you can give every answer a thumb up if that answer is helpful to you.
Thanks,
Arun