You can customize the standard agreement actions and override their default behaviour. The following agreement actions can be customized by using the code mentioned in their respective Visualforce pages:

Action NameDescription
create_new_agreementCreate New agreement
create_offline_agreementCreate Offline Agreement
create_oppty_agreementCreate Agreement From Opportunity
create_child_agreementCreate New Child Agreement
store_executed_agreementStore Executed Agreement
clone_agreementClone Agreement
amend_agreementAmend Agreement
renew_agreementRenew Agreement

Customization is achieved by using the exisiting Visualforce page containing javascript code and configuring the action to invoke the javascript code in a new Visualforce page before displaying the agreement to the user for editing. Ajax javascript libraries supplied by Salesforce are available for use in the javascript code.