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
Harish M 8Harish M 8 

Lightning button override issue for New, Edit button (Button is not displaying in Lightning)


Hello Guys,
in our org, we already overrided our Opportunity__c object New and Edit button with VF pages, currently we are implementing Lightning for Communities,
i created Lightning Component for Override and i selected that component to Override, Please see screen shot For Salseforce Classic - VF For Lightning and Mobile - Lightning Component
but button is not showing in Lightning mode, (if i select No Override for all options then only i am able to see the New button)
any one help on this
Component:


<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,lightning:actionOverride" access="global" >
   
      
</aura:component>


Controller: ({ createRecord : function (component, event, helper) { var createRecordEvent = $A.get("e.force:createRecord"); createRecordEvent.setParams({ "entityApiName": "Opportunity__c" }); createRecordEvent.fire(); } })



User-added image
Best Answer chosen by Harish M 8
Harish M 8Harish M 8
For this i found that we cannot Use Overrided buttons in Lightning, so we have to Create New buttons/components and we have to add using community builder
https://help.salesforce.com/articleView?id=community_builder_use_visualforce.htm&type=5