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

picklist values by record type
I've been reading several articles on trying to get the picklist values by record type, but I have stumbled on quite what I'm looking for.
I'm using the following code in apex to get all record type values:
public List<SelectOption> getShippingMethods() { List<SelectOption> options = new List<SelectOption>(); Schema.DescribeFieldResult fieldResult = Order_Fulfillment__c.Shipping_Method__c.getDescribe(); List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues(); options.add(new SelectOption('', 'Select')); for( Schema.PicklistEntry f : ple) { options.add(new SelectOption(f.getValue(), f.getLabel())); } return options; }
Is there a way to filter the piclist values for a specfic record type?
Thanks.
Hi,
This is not possible.