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
Mike Tol 1Mike Tol 1 

Autocomplete Account field by Apex

Hi!
I have contact table and I need autocomplete Account field. I did that with standard salesforce functionality and it works great, but I need do that with Apex with the same behavior as in standard salesforce functionality.  When you click on Account field, a lookup should appear with suggested accounts. Please tell me how can I do that and where I can get information about it. Thanks!
User-added image
Best Answer chosen by Mike Tol 1
AnkaiahAnkaiah (Salesforce Developers) 
Hi Mike,

You need to implement custom lookup. Refer the below link will help you to proceed further on your requirement.
https://sfdcmonkey.com/2017/07/17/re-usable-custom-lookup/

Thanks!!

All Answers

Mike Tol 1Mike Tol 1
Clarification - with Lookup field
AnkaiahAnkaiah (Salesforce Developers) 
Hi Mike,

You need to implement custom lookup. Refer the below link will help you to proceed further on your requirement.
https://sfdcmonkey.com/2017/07/17/re-usable-custom-lookup/

Thanks!!
This was selected as the best answer
Mike Tol 1Mike Tol 1
Thanks Ankaiah!
AnkaiahAnkaiah (Salesforce Developers) 
Hi Mike, 

Above information helps, please mark it as best answer.

Thanks!!
Mike Tol 1Mike Tol 1
))