Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

how to disable New button on look up record using javascript

Posted on by 40

181425.Capture.PNG

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 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
    Brekaa 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
    gdas 50,085 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
    Brekaa 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
    Brekaa 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
    Preeti Sharma 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
    Shidin Haridas 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans