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
VishalKumarVishalKumar 

How to select/search one object out of 4000 objects list using apex using visualforce page in salesforce

How to select/search one object out of 4000+ objects list using apex in visualforce page in salesforce. I already tried with Picklist field but it can have only 1000 values at a time.
Alain CabonAlain Cabon
@VishalKumar

1) JQuery + autocomplete component 

https://medium.com/@SinghTarandeep/autocomplete-component-in-salesforce-using-jquery-68336dcff4a7

2) a new object that contains the list of 4000 objects (difficult to maintain, need a trigger) and a simple lookup field