You need to sign in to do that
Don't have an account?
Tim D Taylor
Display picklist values by Record Type in Lightning Component
I'm porting existing functionality from a visualforce plus tabs community to a lightning based Napili templated community.
In Visualforce pages, you can use the apex:inputField tag for a picklist field to render only the options for a specific record type.
In a Lighting component when I use the force:inputField tag, ALL picklist values are rendered.
When I try and populate from an apex class call using the Schema.DescribeFieldResult to populate a ui:inputSelect or a lightning:select, I still get ALL picklist values and not just the values based on the record type.
Is there a way to only render picklist values per record type in a lightning component?
In Visualforce pages, you can use the apex:inputField tag for a picklist field to render only the options for a specific record type.
In a Lighting component when I use the force:inputField tag, ALL picklist values are rendered.
When I try and populate from an apex class call using the Schema.DescribeFieldResult to populate a ui:inputSelect or a lightning:select, I still get ALL picklist values and not just the values based on the record type.
Is there a way to only render picklist values per record type in a lightning component?
In my lightning component, I populate my Case object from an init method and then display a select component for a custom field on the case.
The select contains ALL values and not just the values defined for the Case Record Type.
In my VisualForce page, the select component properly displays ONLY the picklist values defined for the Case Record Type.
Does anyone know of a way to properly limit the select options based on the record type in a Lightning component?