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,...
Suggested Answer

Remove Navbar and sidebar panel from from entity records in USD

(0) ShareShare
ReportReport
Posted on by 147

Hello guys,

I amusing MS CRM D365 and USD 4.1 as USD Client.

I have been stuck to this problem, I need to remove Navbar and sidebar panel from entity records in USD.

I am new to this but don't get how to do this. Please help me with this.

Here is the screenshot..

14352.Capture.PNG

I have the same question (0)
  • erhan.keskin Profile Picture
    2,253 on at

    You can pass cmdbar=false and navbar=off parameters to the URL.

    carldesouza.com/.../

  • cloflyMao Profile Picture
    25,210 on at

    Hi Amit,

    There is no direct option to hide nav and topbar in UCI.

    You could run following script on your account form

    (Account for Interactive experience form if you would like to hide form in customer service hub as your screenshot) at its onload event.

    function hideNavAndTop() {
    
        if (Xrm.Internal.isUci()) {
        
        var globalContext = Xrm.Utility.getGlobalContext();
        
        globalContext.getCurrentAppProperties().then(
        
          function(success) {
        
            var app = success.uniqueName;
        
            if (app === "Customerservicehub") {
        
              var cssRules = '';
        
              cssRules  = 'nav[aria-label="Navigate Dynamics 365"] { display:none; }';
        
              cssRules  = 'div[data-id="topBar"] { display:none; } ';
        
              var styleElement = document.createElement('style');
        
              styleElement.appendChild(document.createTextNode(cssRules));
        
              parent.document.getElementsByTagName('head')[0].appendChild(styleElement);
        
            }
        
          },
        
          function(error) {
        
            console.log("error:"   error);
        
          }
        
        );
        
        } else {
        
        console.log("not in UCI.");
        
        }
    
    }

    It will inserts 2 css rules to page to hide corresponding elements.

    Please read the tutorial for how to add javascript in USD:

    https://carldesouza.com/calling-javascript-functions-in-unified-service-desk-running-unified-interface/

    However, a potential issue would be that you would lost navigation if you hide these important menus.

    Regards,

    Clofly

  • Suggested answer
    thonda Profile Picture
    on at

    How is this hosted control tab loaded?

    Is this via Window Navigation Rule or Action Calls?

    If Window Navigation Rule then there are HideCommandBar and HideNavigatonBar options on the form which you need to select as Yes.

    Or else if it is via an ActionCall with Navigate action then use the following values in the data section

    url=/main.aspx?xxxxxxxxxx

    hideCommandBar=true

    hideNavigationBar=true

    ----------------------------------

    Regards,

    Praveen T

    D365 Support Engineer

    Microsoft Corporation

  • Suggested answer
    Amit007 Profile Picture
    147 on at

    Thanks to all of you for your suggestions.

    I have resolved this issue by changing  Hosted Control Type from WPF Internal to IE Process and it worked like charm.

  • thonda Profile Picture
    on at

    Good to hear that you are able to resolve changing the hostingType to IEProcess, you may have noticed USD now supports chrome hostingType, Recommend you to opt for chrome hosting at least for all crm page or unified interface page kind of hosted controls to benefit from high reliability & performance

  • Amit007 Profile Picture
    147 on at

    Sure looking for that .

    Organizations can make

    use of the GlobalBrowserMode setting to use Chrome or Edge at an org level through USD Options, or at a user level through the USD config file, instead of at a hosted control level.

    There are some limitations with using Chrome and Edge, such as support for inactivity timeout/SSO, support for CloseAndPrompt, and JS alert limitations.

  • thonda Profile Picture
    on at

    Edge hostingType is in preview mode, considering Edge browser itself is all set to be re-built using chromium, I recommend do not opt for it. Also my suggestion is better not to go with GlobalBrowserMode as it will force you to either go with all chrome or none. Best is to individually assign hostingType as chrome, all crm forms shall work well with chrome, if you have any legacy web apps which are being loaded Inside standard web application type of hosted control that is known only to work well with IE then you will have provision to choose IEProcess hostingType for these hosted controls specifically.

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 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#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