0

enter image description here

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" >

Controller:

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

1 Answer 1

0

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

You must log in to answer this question.

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