+ Start a Discussion
Manoj DegaManoj Dega 

Dependent Picklist Using Dynamic Apex

Hi All,

Can anyone share the code snippet of Dependent Picklist using Dynamic Apex

Regards
Best Answer chosen by Manoj Dega
Ankit AroraAnkit Arora
I would have copied the code and pasted here but it will waste of time, and I hope this is exactly what you are looking for :

https://developer.salesforce.com/blogs/developer-relations/2008/12/using-the-metadata-api-to-retrieve-picklist-values.html
https://www.minddigital.com/how-to-create-dynamic-dependent-picklist-of-objects-within-salesforce/
http://blog.deadlypenguin.com/blog/2012/07/09/dynamic-dependent-picklists-in-salesforce/

Please let me know if you still need any help.

All Answers

Ankit AroraAnkit Arora
I would have copied the code and pasted here but it will waste of time, and I hope this is exactly what you are looking for :

https://developer.salesforce.com/blogs/developer-relations/2008/12/using-the-metadata-api-to-retrieve-picklist-values.html
https://www.minddigital.com/how-to-create-dynamic-dependent-picklist-of-objects-within-salesforce/
http://blog.deadlypenguin.com/blog/2012/07/09/dynamic-dependent-picklists-in-salesforce/

Please let me know if you still need any help.
This was selected as the best answer
Manoj DegaManoj Dega
Thank you ForceGuru ji... 
Anuj Joshi 29Anuj Joshi 29
Hi All,

I want to display all standard and custom objects in picklist. If i choose Account, its related fields should be displayed in second picklist. Kindly share the code if anyone has.

Regards,
Anuj