Announcements
Hi,
I have to hide the Add Existing Button (on only one subgrid in the form) .How can I do it?
Is it possible to do this with ribbon editor
Thanks!
*This post is locked for comments
Hi Hajira,
You could register the following Javascript function on the load of the form.
function HideAddButtonSubgrid() { // Get subgrid control var subGridCtrl = Xrm.Page.getControl("SubgridName"); // If subgrid is not loaded yet, then call same function after some time. if (subGridCtrl == null) { setTimeout(HideAddButtonSubgrid, 1000); return; } // Get the add button var addButton = window.parent.document.getElementById("SubgridName_addImageButtonImage"); // Hide the button addButton.style.display = 'none'; }
Hope this helps.
You can Hide button, using ribbon work bench.
Open Ribbon Workbench and select related Entity and then you will get 3 levels
Entity
Subgrid
Form.
SO in Subgrid which button, you want to hide then right click and Hide.
if you want to do it Programatically then add Enable rule to that Button and in Javascript you should write following condition
function HideButton(){
if(condition)
return true;
else
return false;
}
Add this Enable rule to your button and Publish
Hope it helps you
You can hide it easily using Ribbon work bench, Create solution add the entity which button you want to hide,
See above screen of Ribbon workbench and consider Account entity as a subgrid in other entity.
Consider Ribbon workbench solution install!
Hi
Yes you can hide the add Button using Ribbon work bench(RWB) solution.
in that select the related entity in RWB the where you want to hide + button. in the sub-grid section select add new record button and hide it.
this might help you:
dcrm365.blogspot.com/.../how-to-hide-on-subgrid-in-dynamics-crm.html
Hi ,
You should use ribbon work bench -
Here I have give one scenario to hide the button based on security role. Need to add the condition as per requirement.
community.dynamics.com/.../275058
thnaks
thanks for this
Please mark answers as verified.
thanks
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.