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
Agnibha Chakrabarti 10Agnibha Chakrabarti 10 

auto populate a search box(show suggession of similar strings) in lightning component

Hi All,
I am new to lightning component development.
i have this use case-----> there is a text box(used as search box) in which i write a string and the sugession will be shown(like Google search). 
 
there is a List of string in an Apex class from which will contain suggested  strings
Best Answer chosen by Agnibha Chakrabarti 10
Khan AnasKhan Anas (Salesforce Developers) 
Hi Agnibha,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

Lightning Aura Component:
https://sfdcfacts.com/lightning/lightning-autocomplete-drop-down-component/

https://medium.com/@amster/building-a-real-time-filtered-list-with-custom-lightning-components-c33c82a07549

Lightning Web Compoennt:
https://www.sfdcpanther.com/custom-reusable-lookup-in-lwc/

https://newstechnologystuff.com/2019/05/01/custom-lookup-in-lightning-web-components/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas