+ 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!

Thanks,
Nidhi M
Best Answer chosen by Nidhi Malhotra
Bhawani SharmaBhawani Sharma
Start from here:
http://jungleeforce.wordpress.com/2013/05/05/using-jquerys-autocomplete-in-salesforce-part-1/

All Answers

Bhawani SharmaBhawani Sharma
Start from here:
http://jungleeforce.wordpress.com/2013/05/05/using-jquerys-autocomplete-in-salesforce-part-1/
This was selected as the best answer
Ramu_SFDCRamu_SFDC
For autocomplete you might have to look at the link http://blogforce9.blogspot.in/2012/11/auto-complete-visualforce-component.html
For search as you type (Dynamic Search) refer to this link http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/

Hope this helps !
Sonam_SFDCSonam_SFDC
Nidhi,

You can start with creating a search block as shown in the following blog - it has sample code to help you build the functionality:
http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/

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:
https://developer.salesforce.com/forums/ForumsMain?id=906F000000098LyIAI
Ashish_SFDCAshish_SFDC
Hi Nidhi, 


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

http://www.youtube.com/watch?v=1W_mDfDM2Ak

Practice the excercises given in the Workbook, 

http://www.salesforce.com/us/developer/docs/workbook_vf/workbook_vf.pdf


Regards,
Ashish
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 bhavi@simplyforce.com/bhawani.sh.sharma@gmail.com +91-9928130589 LinkedIn | Twitter | Blog | Community www.simplyforce.com