Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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
add comment

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.

2 Answers

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
add comment
up vote 3 down vote accepted

Thought its worth sharing. Here is component that supports autocomplete(http://blogforce9.blogspot.in/2012/11/auto-complete-visualforce-component.html).

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
add comment

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