I'm just coming around to learning more about developing in lightning. still going through trailheads and whatnot. However, I can't seem to find how to do a few things.

  1. How can I override the new button on a related list in lightning?
  2. If I can't override, how can I add new buttons there and remove the standard new button
  3. How can I launch a lightning component from a relatedlist button? (I see I can still launch a visualforce page but nothing on lightning components)

Is there a trailhead on any of these topics, perhaps?

  • Does it not suffice to embed that component in Visualforce? – Adrian Larson Mar 1 '17 at 16:51
  • @AdrianLarson It does. Wanted to make sure there isn't a better/ preferred way to do it. Basically just want to make sure I'm following best practices – Tim Tom Mar 1 '17 at 17:52

As far as I know, your best bet here is still to use Visualforce and just surface lightning through that page.

<apex:page standardController="ChildObject__c" recordSetVar="children">
    <!-- include lightning here -->
| improve this answer | |

To my knowledge still Visualforce embedded with Lightning component is the only option

| improve this answer | |
  • This answer is basically an exact duplicate of that which is already accepted. – Adrian Larson May 16 '18 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.