Hiding the De Activate Option on the Associated entity Grid RRS feed

  • Question

  • I need ti hide the DeActivate option on the Associated entity Grid(More Actions -->Deactivate),
     I need to hide this option for all users other that System Administrators, how do i do this??

    Tuesday, October 27, 2009 7:27 AM


    • The unsupported way of doing this could be

      1) Find HomePage.aspx in your crm server.
      2) Open it in visual studio or any other editor.
      3) Find the javascript code function window.onload() in the page.
      4) Add the following code to it

    function window.onload()
        // code to hide send deactivate option
     var deactiviateElement = document.getElementById('_MIdoActioncrmGrid2deactivate');
        if (deactiviateElement != null) {
            deactiviateElement.style.display = 'none';
        // end of code

    But remember it is unsupported !


    Source: this thread


    Thursday, October 29, 2009 8:05 PM