Savefunc
From SmartWiki
You can use savefunc to create a custom Browser Script that runs whenever a record is saved or submitted.
Instructions:
- Create a Custom Field on the page of type: Custom Field Type: Special – Browser Script
- Include a function in the Browser Script called savefunc that includes the JavaScript you wish to execute when the record is either saved or submitted.
Example:
//this function runs when save/submit is clicked. It runs the AddActivity script prior to the save/submit. function savefunc() { AddActivity() }