Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hide '+' in Sub grid Using Java script

(0) ShareShare
ReportReport
Posted on by

Hello Everyone ,

I got one requirement that i need to hide + in sub grid when there is one record active , When there is no record in the subgrid i want + to enable ,

Is there any possibility that i can achieve that , Please help me , If there is any Poc please share it .

I tried to do that with Ribbon Workbench , but I am not find the result

Thanks in Advance

Ramesh

]

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Hide '+' in Sub grid Using Java script

    Hi Ramesh,

    You can do this with JavaScript, enable rule & ribbon workbench. Create a javascript which will return true false based on your condition i.e. if record exists or not. Than using ribbon workfbench, add enable rule and add call this method.

    Refer below links-

    ribbonworkbench.uservoice.com/.../121427-enable-disable-a-ribbon-button-dynamically-based-o

    msdn.microsoft.com/.../dn932137.aspx

    community.dynamics.com/.../count-total-subgrid-records-in-dynamics-crm-using-javascript

    Hope this helps.

    Hope this helps.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Hide '+' in Sub grid Using Java script

    Hi Ramesh,

    You can do this without any code using security role by removing create access rights of the entity .

    In addition you can also do by  adding enable disable rule using ribbon work bench.Check below post-

    community.dynamics.com/.../275058

  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at
    RE: Hide '+' in Sub grid Using Java script

    Refer the below thread:

    community.dynamics.com/.../244901

    Hiding button using Enable/Display rules in Ribbon workbench is only supported solution.

    Any method like getElementById using DOM manipulation in strictly unsupported.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans