Difference between revisions of "Savefunc"
From SmartWiki
Line 13: | Line 13: | ||
RunAnotherFunction() | RunAnotherFunction() | ||
do that | do that | ||
+ | return True | ||
} | } | ||
</pre> | </pre> |
Revision as of 11:19, 31 July 2009
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:
function savefunc() { do this RunAnotherFunction() do that return True }