Salesforce

Salesforce

Popup using Salesforce Lightning Component

The below code will open Contacts tab when the popup is closed. Sample Code: Lightning Component: <aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >                 <section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open">                      <div class="slds-modal__container">                              <!-- Modal/Popup Box Header-->               <header class="slds-modal__header">                   <lightning:buttonIcon iconName="utility:close"                                         onclick="{! c.closeModel }"                                         alternativeText="close"                                         variant="bare-inverse"                                         class="slds-modal__close"/>                   <h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate">Header</h2>   ....

Salesforce

How to get Record Type Id by overriding standard action in Salesforce Lightning?

Add lightning:actionOverride and lightning:hasPageReference to the list of interfaces in the aura:component tag. Sample Code: Lightning Component: <aura:component implements="lightning:actionOverride, lightning:hasPageReference" > <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> </aura:component> Lightning Component JavaScript Controller: ....

Salesforce

Overriding New button in Salesforce Lightning Experience with a Custom Lightning Aura Components

Navigate to a lightning component or standard record page creation based on Record Type in Salesforce Lightning NewContact Lightning Component: <aura:component implements="lightning:actionOverride, lightning:hasPageReference"> <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> </aura:component> NewContact Lighting ....