Announcements
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Hamza H 142 Super User 2026 Season 1
Nagaraju_Matta 128
11manish 119