Can the following quick create button highlighted in yellow in OPEN OPPORTUNTITIES grid in the Account page be hidden or not made clickable
*This post is locked for comments
Can the following quick create button highlighted in yellow in OPEN OPPORTUNTITIES grid in the Account page be hidden or not made clickable
*This post is locked for comments
Hi ,
Here is the details steps you need to follow -
- Add below code in a JS web resource .
Make sure you write enable rule like below so that , the button will be hide only for account subgrid -
function HideOpportunitySubGridButton() { var entityType = Xrm.Page.data.entity.getEntityName(); if (entityType == "account") { return false; } else { return true; } }
- Create one solution and include the Opportunity entity.
- Open Ribbon workbench and select the solution.
- Select the Add New button under subgrid area and click on customize button.
- Find the command and click on Add new enable rules.
- Select the web resource and put the JS function name above mentioned.
- Select Default true and invert true.
- Publish
Hope this helps.
You can refer this thread as well-
Hi,
remember while configuring the enable rule and display rule, check the current entity is "Account" only proceed. Else other entities with this subgrid will get affected too.
You can refer below video on how to configure it.
Please use ribbon workbench and configure hide show rule
Please download using below link
https://www.develop1.net/public/rwb/ribbonworkbench.aspx
A tutorial is available from https://ribbonworkbench.uservoice.com/knowledgebase/articles/71374-1-getting-started-with-the-ribbon-workbench
You can also call a java-script function if required any custom logic
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156