function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rama_SFDCRama_SFDC 

How to call lightning component from related list button in lightning

How to call lightning component from related list button in lightning .
i want to prepopulate child object fields when creating from parent record related list 


Thanks
NagendraNagendra (Salesforce Developers) 
Hi Ramakirshna,

As far as I know, your best bet here is still to use Visualforce and just surface lightning through that https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_visualforce.htm page.
<apex:page standardController="ChildObject__c" recordSetVar="children"> 
<!-- include lightning here --> 
</apex:page>

Hope this helps.

KIndly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are facing a similar issue.

Thanks,
Nagendra