You need to sign in to do that
Don't have an account?
mworld
Dynamic Picklist values based on Record Type in VF
Is it possible to have picklists on a custom VF page respect the recordtype (with regards to their available choices) without elaborate if/else coding? Stock pages do this automatically with Page layoputs but once you cross over to a custom page it seems you lose this completely.
There is an idea on the idea exchange you can and should vote for!
Here's the thread that explains the bug: Re: Picklist InputField does not respect RecordType?
Sam Arjmandi has a custom component that may be a workaround: A Picklist Component For Your Visualforce Pages
Jeff Douglas
Informa Plc
http://blog.jeffdouglas.com
Point taken. I stand (actually sitting at my desk) corrected.
Jeff Douglas
Informa Plc
http://blog.jeffdouglas.com
There is no out of the box way to do this - you will have to write some javascript to do this.
Refer to this blog post for details.