1

Is it possible for me to add a custom button in the highlighted box? When user clicks on the custom button, it will trigger a lightning component.enter image description here

3
  • Look at object based quick actions and how to hook up lightning components to the quick actions
    – Rao
    Commented Oct 10, 2017 at 6:00
  • @Rao object based quick actions only allows button within the record page. But I want the button at the listing page instead of record page.
    – WenHao
    Commented Oct 10, 2017 at 7:47
  • @WenHao and you need to map that quick action in page layout.
    – brahma
    Commented Oct 10, 2017 at 9:42

2 Answers 2

2

I don't see a direct way to add a button that calls a Lightning Component directly from List Screen.

A round-about way, but you can follow this method to achieve this.

  1. From Object Manager>Select Your Custom Object > Search Layout > Edit You will see a link to create a list button.

    enter image description here

  2. Now when you create the button. Select the Content Source as Visual Force page. We don't have a option to select a lightning component here**(Refer below)

  3. Add the button to the Search Layout: enter image description here

    enter image description here

  4. The button now will appear as shown below:

    enter image description here

**Now for the Lightning Component part, you will have to import the lightning component into a visualforce page: See this link for details on how to import a ligtning componet to Visualforce Page.

1

In Object Manager, navigate to Opportunity -> Search layouts(left side ) -> Edit the List View record.

When edit the list view you will see your custom button add it to selected and save it. Now you will see the custom button on the page.

Regards,
Akshay

You must log in to answer this question.

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