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
chandrashekar Jangitichandrashekar Jangiti 

how we can Lookup field for custom objects in Lightning

Hi 
Folks, I new to Lightning component for creating Lookup fields for Custom Object ,that Lookup field for the custom object are Account,Contact and Opportunity..so how we can imlement this in component..

thanks,
Chandu
Best Answer chosen by chandrashekar Jangiti
chandrashekar Jangitichandrashekar Jangiti
Hi Ajay,

I did this...
for this we can do with using <lightning:recordEditForm>...my prob solved..

thanks,
Chnadu

All Answers

Ajay K DubediAjay K Dubedi
Hi Chandu,
Please check below URL. I hope you understand this.

Check here salesforce custom-lookup-lightning-component

http://sfdcmonkey.com/2017/07/17/re-usable-custom-lookup/

http://sfdcmonkey.com/2017/01/07/custom-lookup-lightning-component/

Please mark it as best Answer if you find it helpful.

Thank You
Ajay Dubedi
chandrashekar Jangitichandrashekar Jangiti
Hi Ajay,

Thanks for reply, but i already saw that code which you posted now.
that is actually showing all records which is in Account object,but i want to show only related to that custom object with Account records only while select lookup field....


thanks,
chandu

 
chandrashekar Jangitichandrashekar Jangiti
Hi Ajay,

I did this...
for this we can do with using <lightning:recordEditForm>...my prob solved..

thanks,
Chnadu
This was selected as the best answer