locked
CRM 2011 Form Hiding all Left Navigation items RRS feed

  • Question

  • Is it possible to hide all the left navigation links on a custom entity form?

    I've customize the form, removing all the related records on the navigation, leaving just the headings.

    When I pull up the published form, one navigation item remains.

    Thanks in advance. 

    Monday, February 27, 2012 8:45 PM

Answers

All replies

  • Try this:

    http://blog.customereffective.com/blog/2011/01/removing-navitems-on-forms-in-microsoft-dynamics-crm-2011.html 

    or

    Java Script:

    var objNavItem = Xrm.Page.ui.navigation.items.get("navContacts");
    objNavItem.setVisible(false);

    use dev toolbar on IE to view the name of navigation.


    Atenciosamente,
    Rodrigo Hentz - MCP.MCPS.MCNPS.MCTS.MBSS.MBSP.MCITP
    Profile
    Blog

    Monday, February 27, 2012 11:22 PM
  • Thanks for the response Rodrigo, but I'm trying to hide "Processes" header.  I believe it's '_NA_PROC'.  I've also removed "Dialog Sessions" and "Workflows" from the label.  In theory, the label should not display because there are no child elements.  But it does. 

    Any ideas?  Can anyonerecreate this scenario?

    Wednesday, February 29, 2012 5:43 AM
  • can you post an image of the form and show what you want to hide? I try to play well here.

    Atenciosamente,
    Rodrigo Hentz - MCP.MCPS.MCNPS.MCTS.MBSS.MBSP.MCITP
    Profile
    Blog

    Thursday, March 1, 2012 12:00 PM
  • Hi,

    You can use :

    function NotDisplayLinkGroupProc(){
     var crmProc = document.getElementById("_NA_PROC");   
      if (crmProc != null) {  
    crmProc.style.display='none'
    } }
    Regards,

    Philippe

    Blog : Dynamics CRM pour les francophones/for French speakers

    Please remember to click "Vote as Helpful" and “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.


    • Edited by Philippe LEAL Thursday, March 1, 2012 3:05 PM
    • Proposed as answer by Philippe LEAL Thursday, March 1, 2012 3:06 PM
    • Marked as answer by mosbySE Monday, March 5, 2012 4:51 PM
    Thursday, March 1, 2012 3:04 PM
  • If you are looking to hide the Left hand Tab items on a form then you can use the following supported script

    xrmPage.ui.tabs.get(1).SetVisible(true); // Show tab

    xrmPage.ui.tabs.get(1).SetVisible(false); // Hide tab

    orrr try

    document.getElementById(“crmNavBar”).parentElement.style.display = “none”;


    Software Specialist Crm


    Thursday, March 1, 2012 3:19 PM
    • Marked as answer by mosbySE Monday, March 5, 2012 4:51 PM
    Thursday, March 1, 2012 8:12 PM