You need to sign in to do that
Don't have an account?
suneel kumar 32
How to display an input lookup field in lightning component
Hi,
I need to display lookup field while creating a record from Lightning component so that user can select associated account lookup while creating contact record.
I need to display lookup field while creating a record from Lightning component so that user can select associated account lookup while creating contact record.
you can create lightning lookup field
go to the bleow link for you solution
https://developer.salesforce.com/blogs/developer-relations/2015/06/salesforce-lightning-inputlookup-missing-component.html
Thanks
Mark it best answer if it helps you :)
A much complete and functional version can be found here (https://github.com/Chaos-Tech-Corp/Input-Field-Lookup).
As simple to use as:
Any idea why that might be?
Apologies I forgot to include one file for the event in the repository. It's up to date now and you shouldn't have that error anymore.
Regards,
Kristjan
your code really helped me a lot . Thank you so much . But m getting error when i click on New Account. Can you please help me with that.
The error mesg i got is : Action failed: c:lookupField$controller$createNewRecord [Cannot read property 'setParams' of undefined] Failing descriptor: {c:lookupField$controller$createNewRecord}
Are you able to find out solution for Cannot read property 'setParams' of undefined] Failing descriptor: {c:lookupField$controller$createNewRecord} issue?
BestRegards
Uma