My client wanted to remove (or hide) “Total Time” and “Billable Time” fields in the Case Close dialog window:
Of course, I knew that it is possible to open the file CRM_Installation_Directory\CRM\Web\CS\cases\dlg_closecase.aspx, add several lines of code, and hide fields and labels; but this, the most obvious and easiest way out, had 2 disadvantages:
1. This solution is unsupported and it could be broken with new Rollups.
2. This solution does not work for CRM Online.
So I decided to solve this task using supported approaches.
Step 1. Create a new solution and put the Case entity inside:
Step 3: Create the dialog to be used instead of a standard one and add it to solution. It should look like following:
Step 4: Remove the original “Close Case” and create a new “Close Case” button using Ribbon Customization. I usually do it using Ribbon Workbench:
Publish the changes that you’ve made. Demonstration: