While developing salesforce lightning component, we faced a weird issues. As you know till now we cannot directly use salesforce picklist field as a standard input field in LC, so as a workaround we have to create our own ui:selectlist

Now, while creating same, we added almost 500 picklist values in a single component for country and currency. This stops the component to load. It gives an error of "Event Fired".

Anyone faced something similar? We are using lightning components in Napili Template.

1 Answer 1


You should create custom field for picklist and add those entries to the picklist. Now create schema to get these picklist values in your lightning component. Here I am creating a schema to get lead status in picklist and calling this method from aura init function-

 public static List<String> getLeadStatus(){
    List<String> options = new List<String>();
    Schema.DescribeFieldResult fieldResult = lead.status.getDescribe();
    List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
    for (Schema.PicklistEntry f: ple) {

    return options;}

Let me know if you need more information.

  • This makes sense AJAY. Let me try out this! Jul 27, 2016 at 10:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .