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
Nidhi MalhotraNidhi Malhotra 

Visualforce page help to search records and auto fill

Hi All,

Me new to salesforce. I need a help here. I want to develop a visualforce page where there is a text box. When we type something in the text box, I want to search the item entered in the account object and show in a table. Also If possible while typing we need to show sugesstions like Auto fill.

When the rowns are displayed there must be a button when click, it must execute some Controller function.

How do I start with this? Please help!

Nidhi M
Best Answer chosen by Nidhi Malhotra
Bhawani SharmaBhawani Sharma
Start from here:

All Answers

Bhawani SharmaBhawani Sharma
Start from here:
This was selected as the best answer
For autocomplete you might have to look at the link
For search as you type (Dynamic Search) refer to this link

Hope this helps !

You can start with creating a search block as shown in the following blog - it has sample code to help you build the functionality:

You can then add custom button or link on the page block table where you are populating the search results as shown in the code on link below:
Hi Nidhi, 

Go through this one hour training video - one of the Best sessions by the Best trainer,

Practice the excercises given in the Workbook,

Nidhi MalhotraNidhi Malhotra
You all simply rock! Is there a way to select everyone's answer as best answer?  :)
Tej Pratap 98Tej Pratap 98
@Sonam_SFDC, Ramu_SFDC, Nidhi Malhotra, Ashish_SFDC, Bhawani Sharma,

Hello Guys, Is there any way to implement concept of dynamic search like gmail as you want to send any mail to any one, when you enter first character the whole list of users start with that charcter display, and you can select multiple contacts to send mail, i want to implement this concept plese help me guys.
Bhawani SharmaBhawani Sharma
You will have to auto complete component in SFDC. You can use jQuery to build that. Regards, Bhavi Sharma Certified Salesforce Consultant +91-9928130589 LinkedIn | Twitter | Blog | Community