Notifications
Announcements
No record found.
Hello
How can I intercept/replace the New button click of lookup field?
Thanks.
Hi Marina,
You need to remove the 'Create' privilege from the users security role for lookup entity to hide the 'New' button.
That is the only supported way.
Thanks,
Prateek
Hello Prateek,
Thank you for your answer, but I want to write my own logic when click New button of lookup field.
So, I am going to write JS and customise button or command. Is it possible ?
D365 doesn't provide a way to customize the lookup control. So you won't be able to write JS on the + button in a supported way.
However, You can always build a custom PCF Control and add your functionality there.
Hi Marina Karapetyan,
as an alternative to PCFs, you can:
https://blog.magnetismsolutions.com/blog/jaredjohnson/2020/04/03/--toggling-the-new-button-in-inline-lookups-in-dynamics-365-
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 70 Super User 2025 Season 2
Gerardo RenterÃa Ga... 33 Most Valuable Professional
Daniyal Khaleel 32 Most Valuable Professional