lightning:recordEditForm で参照項目を使用した場合、項目の値に既存のデータが表示されないことがあります。これは、現在時点では、lightning:inputField はページレイアウトに項目が追加されているときにのみ入力されるためです。この挙動は、Lightning Web コンポーネント (LWC) 版の Record Edit Form (lightning-record-edit-form) でも見られます。
<aura:component implements="force:appHostable">
<lightning:card title="Lookup Field Edit">
<lightning:recordEditForm recordId="a00S6000000xxxxxxx" objectApiName="CustomObject__c">
<lightning:inputField fieldName="Account__c" />
</lightning:recordEditForm>
</lightning:card>
</aura:component>
タブを開いて、項目がページレイアウトに追加されていない場合、項目の値が「検索...」と表示されているのを確認してください。ページレイアウトに追加された場合、項目は正しく入力されます。000380201

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.