Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Need to remove the '+' sign from one of the Subgrids of same Entity, based on their View.

Posted on by

I am using 2 Subgrids of the same Entity on the form of Entity B. The two Subgrids differ in the way that they use different Views inside them. Two different Views are created for each Subgrid in the Entity A.

I need to remove the '+' (plus) button that comes above the Subgrid, but for only one of them, and not both.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Need to remove the '+' sign from one of the Subgrids of same Entity, based on their View.

    Do NOT do Lathin solution. It's an unsupported hack, which does not even work in  2016\365 anymore.  

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: Need to remove the '+' sign from one of the Subgrids of same Entity, based on their View.

    Did the javascript logic help??

    Thanks

    Goutham

    <<Please mark my answer as verified if it solves your query>>

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: Need to remove the '+' sign from one of the Subgrids of same Entity, based on their View.

    Hi Nikhil,

    I think using ribbon workbench would hide plus button on all the grids for that entity. If you want only to hide it for specific subgrid, then you can add a custom javascript on page load and hide the plus button.

    the id of the plus button will be the subgrid id/name given on the form(when creating it via customization) plus  "_addImageButton". For example if the id/name of the subgrid is "subgrid1_incident", then the id of plus button would be   "subgrid1_incident_addImageButton". Hence hide logic would be

    $("#subgrid1_incident_addImageButton").hide(); //Jquery

    document.getElementById("subgrid1_incident_addImageButton").style.display = "none"

    Thanks

    Goutham

    <<Please mark my answer as verified if it solves your query>>

  • SOUNDHARYA.N.V Profile Picture
    SOUNDHARYA.N.V 165 on at
    RE: Need to remove the '+' sign from one of the Subgrids of same Entity, based on their View.

    Hi ,

    You can use ribbon work bench. Go to the ribbon work bench open the entity which + button you want to hide sub grid form + button right click press hide and publish it your button will be hidden. Please go to the entity which + button you want to hide.

    If this suggested answer has resolved your issue please mark as verified to helps others in the future.

  • Suggested answer
    TheMarkChristie Profile Picture
    TheMarkChristie 10,328 on at
    RE: Need to remove the '+' sign from one of the Subgrids of same Entity, based on their View.

    Hi

    You can use the Ribbon Workbench to do this

    2017_2D00_04_2D00_08-21_5F00_47_5F00_10.png

  • Suggested answer
    prt33k Profile Picture
    prt33k 6,907 on at
    RE: Need to remove the '+' sign from one of the Subgrids of same Entity, based on their View.

    Hi Nikhil,

    There is no supported way to remove '+' button apart from restricting through security role.

    But since you need it on same entity then security role option wont work.

    The supported way will be to restrict it using plugin on associate message and check in entity A and Entity B are fulfilling the condition and if not then throw exception.

    The unsupported way will be using javascript and hiding the element.

    Thanks,

    PS

  • Suggested answer
    philippe LEAL Profile Picture
    philippe LEAL 40 on at
    RE: Need to remove the '+' sign from one of the Subgrids of same Entity, based on their View.

    You can use unsupported javascript.

    dynamicscrmcenter.com/.../hide-subgrid-add-button

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans