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
Ayesha Nadhia 11Ayesha Nadhia 11 

How to Display All Records in a Lookup field of target Object.

How to Display All Records in a Lookup field of target Object while creating new record on source Object without entering any text in Search bar .   As per my Knowledge it is one of the limitation of Lightning experince. In salesforce classic we have an option of "Show All Result".
So kindly suggest me a way to achieve this without customizing the page.User-added image
Ramesh DRamesh D
Hi @Ayesha,
 There is a limitation in Lightning experince which is not good but by creating a custom small component you can achive it 
To display all records in a lookup field of a target object, you need to create a custom lightning component and use it on the target object's record page.

somthing like below
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
    <lightning:card title="All records">
        <lightning:recordEditForm recordId="{!v.recordId}" objectApiName="{!v.sObjectName}">
            <lightning:inputField fieldName="{!v.fieldApiName}"/>
        </lightning:recordEditForm>
    </lightning:card>
</aura:component>