Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

How to hide button on subgrid at Dynamic CRM mobile apps

(0) ShareShare
ReportReport
Posted on by 95

Hi i want to ask how to hide button in Dynamic CRM Mobile apps like in this picture

 remove-button.png

The button show when i select the record in the sub grid.

I dont see the button in Ribbon Workbench.

I need to remove it all in mobile and in apps version.

Thank you

Categories:
  • LeoAlt Profile Picture
    16,331 Moderator on at
    RE: How to hide button on subgrid at Dynamic CRM mobile apps

    Hi partner,

    I'm glad that you resolved your question.

    If my answer helped you ,please mark my answer as verified so that we could help other users with similar requirement.

    By the way, I suggest that you could hide your Organization Url when you post screenshots to Protect your personal information.

    Best Regards,

    Leo

  • N.A.R.A Profile Picture
    95 on at
    RE: How to hide button on subgrid at Dynamic CRM mobile apps

    Hi Thank you for helping again. Because of you i can find how to hide it. The concept is same i use getelementby id to get id and find the nodes.

    suc2.PNG

    so i try to set by browser console

    document.getElementById("dataSetRoot_ActivitySubGrid").childNodes[0].childNodes[0].style.display = "none"

    suc2.PNG

    and now its success to hide

    suc3.PNG

    Thank you

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at
    RE: How to hide button on subgrid at Dynamic CRM mobile apps

    Hi partner,

    I tried in my instance and I also could not find the buttons in ribbonworkbench after I selected a record in subgrid.

    Then I tried to use the below js code to do this, but there is some other questions.

    1.The controller of the button row do not have "id" attribute so I can not get it from js directly.

    community383.png

    So I tried to get its father DIV which has the "Id" "commandBar_0" and then find its childnodes and then here is the second question:

    2.When we open the form in UCI, it shows us "Summary" tab by default, but there is no html code of "Activites" tab so that we can not get the button controller when onloading the form :-(. 

    function hideButton(){
        var div =document.getElementById("dataSetRoot_0").childNodes;
        var childdiv=div[0];
        childdiv.style.display=none;
    }

    From what has been discussed above, I didn't find a way to achieve your requirement. You could also raise an idea to Microsoft Team for your thoughts.

    Hope it helps.

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans