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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How remove/hide oob buttons in Xrm.Navigation.navigateTo?

(0) ShareShare
ReportReport
Posted on by 5

Hi to all

Is it possible to remove / hide these buttons?
If this is not possible, can logics be added? for example: if I close the dialog with button X, the value of a field in the crm is modified


ModalDialog.jpg

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    There is no good way to hide those buttons. Here is what you can try:

    parent.$("button[data-id='dialogResizeIconButton-2']", parent.document)[0].style.display = 'none';

    parent.$("button[data-id='dialogCloseIconButton']", parent.document)[0].style.display = 'none';

  • emal sa Profile Picture
    5 on at

    Hi Andrew, thanks it works!

    For my understand: can you add functionality to the buttons?  for example: if I close the dialog with button X, the value of a field in the crm is modified

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    It's not possible in a supported way. I believe it's possible using some DOM tweaks but I would recommend avoiding that.

    If my reply (or replies) answers your question take a minute and verify the answer. You can do it by clicking "Yes" at the top of the reply (or replies) under the label "Does this answer your question?"

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 144 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 59

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans