Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Hide Sitemap onLoad of an entity Record

Posted on by 420

 I want to hide sitemap on a records from on its onload. Can any one help if that is possible ? if yes how ?

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Hide Sitemap onLoad of an entity Record

    Hi Pallavi,

    Yes, you can hide tabs inside the forms using javascript. Below is the sample script to hide the tabs

    ===========================

    var tab = Xrm.Page.ui.tabs.get("tab_1"); // tab_1 is the name of your tab and not the lable of your tab

           if (tab !== null) {

               tab.setVisible(true); // True = Visible; False = Hidden

           }

    ===========================

    Here is the official MS documentation in the JavaScript available for tabs

    msdn.microsoft.com/.../gg328067.aspx

    The below links contains all the supported javascript method (though its for CRM 2015 but still valid)-

    drive.google.com/.../view

    Hope this helps

  • Pallavi Manocha Profile Picture
    Pallavi Manocha 420 on at
    RE: Hide Sitemap onLoad of an entity Record

    Thank you for the suggestion HIMBAP :)

  • Pallavi Manocha Profile Picture
    Pallavi Manocha 420 on at
    RE: Hide Sitemap onLoad of an entity Record

    Hi Guillaume ,

    Thanks for your reply!

    I am wanting to hide the all the tabs of the form via javascript! any suggestions on that ?

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Hide Sitemap onLoad of an entity Record

    Hi Pallavi,

    There is no supported way of doing that, but you can play with DOM and see if you are able to do that but this will be totally unsupported even if you are able to do that.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Hide Sitemap onLoad of an entity Record

    Hi,

    yes hideing the command bar is unsupported.

    Hiding particular tabs is supported. The users which don't have (per say sales rights) will not see the sales tab.

  • Pallavi Manocha Profile Picture
    Pallavi Manocha 420 on at
    RE: Hide Sitemap onLoad of an entity Record

    @ Ravi/ HIMBAP : can we hide tabs inside the sitemap. what if i via javascript hide all the tabs( would that be equivalent to hiding the sitemap navigation) is it possible ?

    thank you for the replies. Helped get more insight

  • Pallavi Manocha Profile Picture
    Pallavi Manocha 420 on at
    RE: Hide Sitemap onLoad of an entity Record

    the black section in 365 that contains dynamics 365 is command bar right ? and once we navigate inside it is sitemap.

    Hiding both sitemap an command bar is unsupported? any reference for the same ?

    We can though hide particular tabs right ? inside the sitemap? right ?

  • Pallavi Manocha Profile Picture
    Pallavi Manocha 420 on at
    RE: Hide Sitemap onLoad of an entity Record

    the black section in 365 that contains dynamics 365 is command bar right ? and once we navigate inside it is sitemap.

    By saying "You" can neither hide sitemap nor the command bar" u mean its unsupported?

    Can you please help me with a link or a place which backs this so that i have it as a POC

    The idea is to have a form inside another,looking like 1 form

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Hide Sitemap onLoad of an entity Record

    Hi Pallavi,

    The sitemap is on the top which contrains Sales, Service etc modules & entities. When you open the entity record, you see the command bar at the top of the form which contains New, eactivate etc button.

    You can neither hide sitemap nor the command bar.

    I am curious to know what would be the business requirement around that?

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Hide Sitemap onLoad of an entity Record

    Hi,

    I hope you want to hide command bar from entity form right ? no supported way of doing this.

    Thanks

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