+ Start a Discussion
Ajeeth Kumar SAjeeth Kumar S 

please share the code for record create page in lightning component. this component will override the new button in lightning page.Thanks..

Raj VakatiRaj Vakati
Refer this link

https://rajvakati.com/2018/02/18/lightning-components-actions-override/

 
<aura:component implements="lightning:actionOverride,force:hasRecordId,force:hasSObjectName">
    <lightning:recordEditForm aura:id="recordEditForm" 
                              objectApiName="Opportunity">
        <lightning:messages />
        <lightning:inputField fieldName="Name" />
        <lightning:inputField fieldName="Amount" />
        
        <lightning:inputField fieldName="CloseDate" />
        <lightning:inputField fieldName="Description" />
        <lightning:inputField fieldName="StageName" />
        <lightning:inputField fieldName="Probability" />
        <lightning:inputField fieldName="Type" />
        <lightning:inputField fieldName="LeadSource" />
        
        <lightning:inputField fieldName="CurrentGenerators__c" />
        <lightning:inputField fieldName="TrackingNumber__c" />
        
        
        <lightning:button class="slds-m-top_small" type="submit" label="Create new" />
    </lightning:recordEditForm>
    
</aura:component>

 
Ajeeth Kumar SAjeeth Kumar S
@Raj Vakati Thanks for shareing the code. it's not working for me.