JavaScript

Automatically run JavaScript on page load

Add the following piece of code to the page body.

2.  Use body onload event

     

JavaScript

Custom Send Email Button

Custom Send Email Button to auto populate the “To” field. Add a onclick JavaScript button on detail page.

obtaining field ID for Custom & Standard field