+ Start a Discussion
Vardan Minasyan 9Vardan Minasyan 9 

Creating autocomplete textbox in Lighting Web Components

Hi! 
I want to use/create an autocomplete textbox using Lightning Web Components. Particularly, I want an autocomplete textbox for looking up a PriceBookEntry2 so that I can add a product to an opportunity, on the same page as Opportunity. 
I see options for autocomplete textbox for Visual Force, for Aura Lightning. However, I can't find anything for Lightning Web Components. 

I do see Lightning-Input (https://developer.salesforce.com/docs/component-library/bundle/lightning-input/example), but I don't know how to make it an autocomplete type.

What's the best way to go about it?

The final result needs to be an opportunity form, where a person can add/edit/delete products on the same page. 
Best Answer chosen by Vardan Minasyan 9
Nayana KNayana K
https://newstechnologystuff.com/2019/05/01/custom-lookup-in-lightning-web-components/

You can try implementing this lookup comp

All Answers

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

You can try implementing this lookup comp
This was selected as the best answer
Vardan Minasyan 9Vardan Minasyan 9
Hi Nayana, 
Thanks for the link - that's what I was looking for!
Nayana KNayana K
Please mark this post as solved if it helped you