web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can I hide the (+) Add Existing button from a subgrid ..

(0) ShareShare
ReportReport
Posted on by 550

Hi,

I have to hide the Add Existing Button (on only one subgrid in the form) .How can I do it?

Is it possible to do this with ribbon editor

Thanks!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi Hajira,

    You could register the following Javascript function on the load of the form.

    function HideAddButtonSubgrid() {
    
        // Get subgrid control
        var subGridCtrl = Xrm.Page.getControl("SubgridName");
    
        // If subgrid is not loaded yet, then call same function after some time.
        if (subGridCtrl == null) {
            setTimeout(HideAddButtonSubgrid, 1000);
            return;
        }
    
        // Get the add button
        var addButton = window.parent.document.getElementById("SubgridName_addImageButtonImage");
    
        // Hide the button
        addButton.style.display = 'none';
    }

    Hope this helps.

  • Verified answer
    shivaram Profile Picture
    3,315 on at

    Hi,

    You can Hide button, using ribbon work bench.

    Open Ribbon Workbench and select related Entity and then you will get 3 levels

    Entity

    Subgrid

    Form.

    SO in Subgrid which button, you want to hide then right click and Hide.

    if you want to do it Programatically then add Enable rule to that Button and in Javascript you should write following condition

    function HideButton(){

    if(condition)

    return true;

    else

    return false;

    }

    Add this Enable rule to your button and Publish

    Hope it helps you

  • Verified answer
    Waqar Sohail Profile Picture
    on at

    Hi Hajira,

    You can hide it easily using Ribbon work bench, Create solution add the entity which button you want to hide,

    2017_2D00_07_2D00_25_5F00_9_2D00_51_2D00_02.png

    See above screen of Ribbon workbench and consider Account entity as a subgrid in other entity.

    Consider Ribbon workbench solution install!

  • Verified answer
    Lakshmisha Shetty Profile Picture
    on at

    Hi

    Yes you can hide the add Button using Ribbon work bench(RWB) solution.

    in that select the related entity in RWB the where you want to hide + button. in the sub-grid section select add new record button and hide it.

  • Verified answer
    Mohsin Ali Profile Picture
    3,634 on at

    this might help you:

    dcrm365.blogspot.com/.../how-to-hide-on-subgrid-in-dynamics-crm.html

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi ,

    You should use ribbon work bench -

    Here I have give one scenario to hide the button based on security role. Need to add the condition as per requirement.

    community.dynamics.com/.../275058

    Hope this helps.

  • Community Member Profile Picture
    on at

    thnaks

  • Community Member Profile Picture
    on at

    thanks for this

  • Waqar Sohail Profile Picture
    on at

    Please mark answers as verified.

  • Community Member Profile Picture
    on at

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans