web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Disable Add new functionality of look up

(0) ShareShare
ReportReport
Posted on by 836

Hi Guys, 

I have tried to disable functionality of add new of look up by following code but it's giving null value.

var h1 = window.parent.document.getElementById("angus_productgrade");

I tried this but it's not working, has anyone tried doing this thing via Javascript, I don't want to do it via security roles

I have the same question (0)
  • Suggested answer
    Xiong Chen Profile Picture
    on at
    RE: Disable Add new functionality of look up

    do you want to disable lookup field?

    please use Xrm client development model instead of manipulating DOM directly.

    please reference to following code snippet

    Xrm.Page.getControl("your field name").setDisabled(false) //disable lookup field

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 60 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 36 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans