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
Rohith Kumar 98Rohith Kumar 98 

how to suggest list of accounts when typing in lightning:input tag in aura?

Please help me. I want lightning:input to suggest a list of accounts that matches the text.
AbhinavAbhinav (Salesforce Developers) 
Hi Rohith,

Please check below blog for similar use case 

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

https://developer.salesforce.com/blogs/developer-relations/2015/06/salesforce-lightning-inputlookup-missing-component.html

If it helps mark it as best answer.

Thanks!
Suraj Tripathi 47Suraj Tripathi 47
Hi Rohith,
Greetings!

You have to use onchange event in lightning:input .
on every change of text, you have to perform a query on the account using a like clause.

If you find your Solution then mark this as the best answer. 

Thank you!

Regards,
Suraj Tripathi
ravi soniravi soni
hy Rohith,
you can achieve this by using lookup-component.

go to referal url => https://sfdcmonkey.com/2017/01/07/custom-lookup-lightning-component/
let me know if you got solution and mark it as best answer.
Thank you