cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TheIntern
Helper I
Helper I

Hide subgrid ribbon

I have a subgrid on one of my forms in a model-driven app. I want to hide the 'Add New/Add Existing' button from the ribbon only when a certain view is selected.

 

Is there a way to achieve this using JavaScript only? I was avoiding editing the ribbon as the entity is a shared one, and it may affect other subgrids.

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi@TheIntern,

Based on the issue that you mentioned, do you want to disable the "+ " button from a sub grid using JS only?

Since you do not want to configure using ribbon workbench, please check the following threads for reference.

Disable custom ribbon button using java script - Microsoft Dynamics CRM Forum Community Forum

Javascript code to disable button - Microsoft Dynamics CRM Forum Community Forum

Hope it could help.

Regards,

Qi

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (89,651)