You need to sign in to do that
Don't have an account?

Displaying Dependent Picklist in visualforce
My scenario is to diaplay the Product family field(Controlling field) and products as dependent field in visualforce page . Can anyone give me a suggestion to solve this issue. I am new to salesforce.
Thanks in Advance
Thanks in Advance
Please try below code. Class:- I also tested same code in my developer org which is working fine.
Please let us know if this will help you
Thanks
Amit Chaudhary
All Answers
If field dependency you created on field level then please check below post for code.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_dependent_picklists.htm
How To Create Dynamic Dependent Picklist Of Objects Within Salesforce
1) https://www.minddigital.com/how-to-create-dynamic-dependent-picklist-of-objects-within-salesforce/
2) http://www.infallibletechie.com/2012/10/dependent-picklist-using-apex-in.html
3) https://www.sundoginteractive.com/blog/displaying-dependent-picklist-fields-on-a-visualforce-page
4) http://blog.deadlypenguin.com/blog/2012/07/09/dynamic-dependent-picklists-in-salesforce/
Let us know if this will help you
Thanks
Amit Chaudhary
Thank you for you reply. Actually my scenario is i want to see a Product Family field as a picklist If i select any product family item it should show details of that products. I wrote a code
This is my VF page .
I don't want to see Product as picklist i want to see details of the products.
According to my requirement I want product family field as controlling field then base on product family you want to see product detail on in Tabuler formate
Please try below code. Class:- I also tested same code in my developer org which is working fine.
Please let us know if this will help you
Thanks
Amit Chaudhary
Thank you for your reply. Its working good.