Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to disable New button on look up record using javascript

(0) ShareShare
ReportReport
Posted on by 40

181425.Capture.PNG

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: how to disable New button on look up record using javascript

    Hi Brekaa,

    Hiding new button  in popup  is not possible as there is no way to write any event in the popup window. Reason why we suggest  not to do this type of unsupported customization as you don't have control of all forms in dynamics CRM. You also can't hide in advance find window as well.

    Use security role and remove create privilege from that entity , which will hide forms and popup as well.

  • Brekaa Profile Picture
    40 on at
    RE: how to disable New button on look up record using javascript

    Hi Goutam Das

    its working

    but i want to disable new button on popup

    i try to use same code in this case  but not work

  • gdas Profile Picture
    50,091 Moderator on at
    RE: how to disable New button on look up record using javascript

    Hi ,

    There is no supported way you can hide the new button except security role.

    I  have found in the below thread and you verified doing unsupported way , it is not working ?

    community.dynamics.com/.../281002

  • Brekaa Profile Picture
    40 on at
    RE: how to disable New button on look up record using javascript

    Hi Preeti Sharma

    I dont want to do it from security roles

  • Brekaa Profile Picture
    40 on at
    RE: how to disable New button on look up record using javascript

    Hi Shidin Haridas

    I dont want to do it from security roles

  • Suggested answer
    Preeti Sharma Profile Picture
    2,678 on at
    RE: how to disable New button on look up record using javascript

    Hi,

    You can remove access of creating a new record for such user on Entity "Employee" in order to hide this new button

    Hope this Helps:)

  • Suggested answer
    Shidin Haridas Profile Picture
    3,497 on at
    RE: how to disable New button on look up record using javascript

    Control it via security roles.

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.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans