[SalesForce] Override the standard save button with a custom button

I am planning to do something like below:

  1. Create a custom detail page button to replace the save button.
  2. When user clicks the button to save a record it should execute the standard save method after setting certain additional fields on the object apart from the others set by users.

What will be the best way to do this without using visualforce page?

Best Answer

you could create a web-service that is called via javascript using the https://stackoverflow.com/questions/10354284/salesforce-executing-javascript-through-apex-controller

Related Topic