In this lecture, I demonstrate how to create a Custom Button. This button executes JavaScript, which populates today's date into the Close Date field on an opportunity. We also add the custom button to the page layout in order to test it out and see it in action.
Resource:
Custom Button Code -
{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")}
var newRecords = [];
var c = new sforce.SObject("Opportunity");
c.id ="{!Opportunity.Id}";
c.CloseDate = new Date();
newRecords.push(c);
result = sforce.connection.update(newRecords);
window.location.reload();
In this lecture, I demonstrate how to create a Custom Button and add it to a page layout.
In this lecture, I demonstrate how to create a Custom Link and add it to a page layout.
In this lecture I demonstrate how to create object-specific quick actions. We add these quick actions to the page layout for both Salesforce Classic and Lightning Experience.