Difference between revisions of "Savefunc"
From SmartWiki
Line 8: | Line 8: | ||
'''Example:''' | '''Example:''' | ||
<pre> | <pre> | ||
− | |||
function savefunc() | function savefunc() | ||
{ | { | ||
− | + | do this | |
+ | RunAnotherFunction() | ||
+ | do that | ||
} | } | ||
</pre> | </pre> |
Revision as of 11:06, 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 }