Lightning Picklist/Select : Aura vs LWC
Lightning Picklist/Select : Aura Component PickListOptionsController(Apex Controller ) public class PickListOptionsController { @AuraEnabled public static List getPickListOptionList(String objectName, String picklistFieldName){ List picklistOptionList = new List (); Schema.SObjectType convertToObj = Schema.getGlobalDescribe().get(objectName); Schema.DescribeSObjectResult res = convertToObj.getDescribe(); Schema.DescribeFieldResult fieldResult = res.fields.getMap().get(picklistFieldName).getDescribe(); List ple = fieldResult.getPicklistValues(); for( Schema.PicklistEntry pickListVal : ple){ picklistOptionList.add(pickListVal.getLabel()); } return picklistOptionList; } } PickListOptionsComponent.cmp (Component) Choose one... ...