Difference between revisions of "Savefunc"

From SmartWiki
Jump to: navigation, search
Line 8: Line 8:
 
'''Example:'''
 
'''Example:'''
 
<pre>
 
<pre>
//this function runs when save/submit is clicked. It runs the AddActivity script prior to the save/submit.
 
 
function savefunc()
 
function savefunc()
 
{
 
{
AddActivity()
+
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:


Example:

function savefunc()
{
do this
RunAnotherFunction()
do that
}