Add a Custom Enable Rule to an OOB Ribbon
Overview
Today I will demonstrate how to add an Enable Rule to an OOB (Out of Box) ribbon.
Test Scenario:
For example, if the Account's Status Reason is Pending Approval on the Account form, then the + New Contact button in the Contact's sub-grid must be hidden.
Step 1: Open the Contact in the Ribbon Workbench
Step 2: Locate the specific Ribbon
You can find there are many many Add/New ribbons in the designer.
By using the F12 key to open the browser developer tool, you can find the ID of the desired ribbon and locate it.
Step 3: Locate the desired Ribbon->Right Click the OOB Ribbon->select Customise Button
Step 4: Select Add Enable Rule
Step 5:Add Step to the new Enable Rule
Select CustomRule
Detailed CustomRule
SourceCode detailed description
Step 7: Confirm the newly added Enable Rule has been added to the desired Command
Step 8: Publish
Step 9: Hard Refresh the Browser and Test It
The other Ribbons for example Add Existing Contact ... can be customized in the same way.
The End
*This post is locked for comments