Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Well while working with visualforce pages, I was always tempted to replace the boring lookup field with a autocomplete component which searches the records as we enter text in them.

share|improve this question

closed as not a real question by Saariko Apr 9 '13 at 10:29

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Try this out:

Setup -> customize -->search settings -->check lookup autocompletion for whichever objects you wish.

This will automatically search for records as user types in characters. I checked this for bith standard edit layouts as well as visualforce pages.

However the note which appears while you do this setting, states that this will show you the recent items.

share|improve this answer
this component has much more functionality then the default one. Can search on any object, You can search in fields other than name also. – Avidev9 Feb 7 '13 at 11:20
Ok. This is one alternative i thought which required no coding/adding external packages. Hence shared with you. – Shailesh Deshpande Feb 7 '13 at 11:29
up vote 3 down vote accepted

Thought its worth sharing. Here is component that supports autocomplete(

Few features of the autocomplete component

  • Uses Jquery UI to create the autocomplete component.
  • Look And Feel - Has exactly same look and feel as native components
  • Uses Js Remoting to populate data and hence the component is very fast and light weight.
  • Configurable : The search field can be configured to search fields other than "Name" field. Even the value that is returned to controller can be configured return fields other than record Id.
share|improve this answer
nice one @Avidev9 – Pankaj Feb 7 '13 at 5:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.