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
Hashwathi AnandanHashwathi Anandan 

LWC - UI - Text box and search button

How to create LWC Component with one Text box and Seearch button  >>text box
>> search button 
While entering a name in text box it should search for record and return Two fields which is Name and Type of object on the page .
AnkaiahAnkaiah (Salesforce Developers) 
Hi Hashwathi,

Refer the below link have solution for similar kind of ask.
https://www.khumedsfdc.com/2021/12/custom-record-search-functionality.html

If this helps, Please mark it as best answer.

Thanks!!
GÜNES AdminGÜNES Admin
You would need to write a Lightning form in your html file to capture the input, then in your JS file you need to query the schema and write the get() functions to extract the desired data fields from those objects.