0

Guys I have embedded a lightning component on a VF Page, so there is a lighting lookup field on my component, the lookup is perfectly working fine except onething. So usually when we start typing in a lookup field it does show a magnifying glass below.

For example here when I start typing it shows the account names. So I have an account name called "test". So If I have type until "te" it is showing a magnifying glass symbol below my lookup field but when I click on it it is not showing a list of account names starting with "te". I can understand that it is not working as this component is called from VF Page.Image using Lightning input field

  • So if I click on the above highlighted region there are no pop-ups with account names starting with "te". This functionality works very well if it is a standalone lightning components added into a lightning App Builder. – Harish Sridhar Nov 16 '18 at 9:10
  • This is my code <aura:attribute name="Opp" type="Opportunity" default="{ 'sobjectType': 'Opportunity' } "/> <lightning:recordEditForm aura:id="OpportunityEditForm" recordId="" recordTypeId="{!v.oppRecordTypeId}" objectApiName="Opportunity" onsuccess="{!c.callSuccess}"> <lightning:layout> <lightning:layoutItem padding="around-small" size="6" smallDeviceSize="12" mediumDeviceSize="6"> <lightning:inputField class="customRequired none" aura:id="Opportunity.AccountName" fieldName="AccountId" /> </lightning:layoutItem> </lightning:layout> – Harish Sridhar Nov 16 '18 at 9:18
  • 1
    please add your comments to the actual question + the code there would be more readable – Itai Shmida Nov 18 '18 at 7:42
0

You are using lightning:recordEditForm.

This component is not supported in lightning out (VF pages) - you can see in the doc in the upper right corner the supported containers:

Lightning Experience, Lightning Communities, Salesforce Mobile App

You should see in that list Lightning Out / Visualforce if that component was supported in lightning out (in VF pages).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.