
Announcements
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.
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