Here are steps what i did
1. Create a lightning component with lightning:recordeditform
. Inside this form lightning:inputfield
will hold values.
2. Assign this component to record detail page or quick action as per objectApiName
in lightning:recordeditform
.
3. Consider inside that form some fields are lookup fields. Remove those fields from page layout.
5. Now open any record and now see that component section. None of the lookup are populated.
Is anybody face the same issue and have solution help me.
Component
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="global">
<lightning:recordEditForm aura:id="recordEditForm"
recordId="{!v.recordId}"
recordTypeId="0127F000000UdRuQAK"
objectApiName="Opportunity">
<lightning:messages />
<lightning:inputField fieldName="Name" />
<lightning:inputField fieldName="Account_Lookup_Test__c"/>
<lightning:inputField fieldName="Account_Lookup_Test2__c"/>
<lightning:inputField fieldName="Contact_Lookup_Test__c" /><br/>
<lightning:inputField fieldName="Contact_Lookup_Test2__c" />
</lightning:recordEditForm>
</aura:component>
<lightning:recordForm />
also having the same issue.