Is it possible to hide vanilla buttons (in my case crm save button), according to Javascript function or field change in Dynamics - Crm 2016 using workbench? If it's optional where can I had the connection to my display rule?
How to hide vanilla buttons according to a field?
177 Views Asked by Damkulul At
2
There are 2 best solutions below
0

- Download the XrmToolbox: https://www.xrmtoolbox.com/
- Open the Ribbon Workbench 2016
- Open your ribbon
- Right-click on the button you want to edit, click Customize command
- Go in Solution Elements > Commands > Your command
- Add a display rule
- Add Step, Value Rule
If you to use javascript for a complex rule, instead add an Enable Rule and a step, CustomRule.
You need to add a ribbon display rule.
Control when ribbon elements are displayed
This is easier using Ribbon Workbench. This article is similiar but for enable rules. In later versions of CRM disabling a button usually hides it as well.