Adding a Print button to a page

This example adds a Print button to the Lead Summary screen.

  1. Click <My Profile> | Administration | Customization | Primary Entities |  Lead | Screens.
  2. Click the pencil icon beside Lead Custom Screen.
  3. Add the following script to Custom Content:

    <script>
    crm.ready(function()
    {
    crm.addButton('print');
    });
    </script>
  1. Click Save.
This script prints the contents of the HTML <div> element whose ID is EWARE_MID. All other elements of the HTML page are not printed.