The client side API allows us to remove buttons from the screen.
Note: The 'name' of the button is case sensitive so that 'executesummaryreport.gif' is not the same as 'ExecuteSummaryReport.gif'.
Each button can be identified in the button panel using the image name. The actual image is not used in the contemporary/ergonomic theme (the theme used in all currently supported versions) but the image name still remains a convenient way of identifying the button that needs to be hidden.
You can find the image name for the buttons in the source code for the page.
You must use the name as it is written in the HTML otherwise you will not be able to control the button. In the HTML the button may be written all in mixed case or lower case. The reference to the image in HTML is not case sensitive BUT the JavaScript is case sensitive.
These button images are all drawn from the folder
C:\Program Files (x86)\Sage\CRM\CRM2017R2\WWWRoot\Themes\Img\Ergonomic\Buttons
Each of the captions (translations) of the buttons are held in the metadata table custom_captions. The capt_code of the button can be assumed to be the name of the image to be used.
Please note that in the list below I have included the caption name of the buttons that you may find in the default interface BUT you will have to check the case used in the HTML before you reference the button in code.
Caption Code | Context Note |
AddContact |
NULL |