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
Pradeepa P 11Pradeepa P 11 

Custom Lookup Enter Key Issue

I want to display dependent lookup for contact based on a selected account.
I referred this link for custom lookup: http://sfdcmonkey.com/2017/07/17/re-usable-custom-lookup/
So I used this code for contact custom lookup with filter condition. When I click enter key in this custom contact lookup field, the selected account value was removed.
so I tried to disable ‘Enter’ key action on keyDown/KeyUp action. But still, it is removing.
Could you please suggest any solution for this issue?