locked
Omitting the 'New' button on a entity view RRS feed

  • Question

  • In order to have a user specifically create a new Contact record from a related entity, I want to eliminate the 'New' button in the Contact's main view. I know how to hide an associated view button from an associated view, but this is the main view.

    Thank you


    Apps
    Wednesday, November 10, 2010 6:21 PM

Answers

All replies

  • you can only do this through unsupported way, check my post, in the same way you hide new button

    http://mahenderpal.wordpress.com/2010/06/07/hide-ms-crm-4-0-grid-button/


    Mahain : http://mahenderpal.wordpress.com
    • Proposed as answer by HIMBAPModerator Wednesday, November 10, 2010 7:14 PM
    • Marked as answer by Jim Glass Jr Thursday, November 11, 2010 8:24 PM
    Wednesday, November 10, 2010 7:14 PM
    Moderator
  • I will try it. Thanks, so much.
    Apps
    Thursday, November 11, 2010 11:59 AM
  • from your article.....Step1: first get ID of assign button through Developer tools (IE8) or IE developer toolbar (below IE8)

    Does that mean Ctr+N from the view that contains the New button that I want to omit?


    Apps
    Thursday, November 11, 2010 3:01 PM
  • you need to get new button ID,

    try with "_MBopenObj2" 


    Mahain : http://mahenderpal.wordpress.com
    Thursday, November 11, 2010 9:02 PM
    Moderator
  • I found this line in Homepage.aspx

    function window.onload()
    {
    HandleBackButtonIssues(_currentTypeCode);
    }

    do I replace HandleBackButtonIssues line with this?

    var _AssignID=document.getElementById("_MBopenObj2“);
    if(_AssignID!=null)
    _AssignID.style.display=’none’;

    Thank you


    Apps
    Monday, November 15, 2010 1:34 PM
  • Hi, Mahender

    I resolved my problem and the code (previous posting) works as it should. Appreciate your help.


    Apps
    Thursday, November 18, 2010 1:13 PM