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

How to get dependent Picklist in visualforce
Hi All,
i want to display dependent and controlling piclklist in Vf page.
i have tried using slect list and selct option but it showing all the value and i have read that Input fields are currently not supported dependent picklists.
i also dont want to hard code the values in the controller as it might change in future.
Is there any way i can make this as genric using describe or any workaround?
Thanks in advance
You wait :)
Dependent picklist support is coming in the Summer '10 release. If you have a sandbox org on either CS0, CS2, or CS3 this functionality should already be there.
HI Jill,
Thanks for quick reply....yes i read, but i dont want to wait till summer release as customer has urgent requirement , is their any workaround till summer release?
The only workaround I know of is to hardcode the values. I don't believe the describe call can do any more than tell you if the picklist is dependent or not.
You can apparently get more metadata via the AJAX toolkit than you can w/ APEX describe calls.
See this excellent blog article on the topic:
http://richardvanhook.com/2009/04/24/dependent-picklists-in-visualforce/