Onloadfunc
From SmartWiki
Revision as of 10:09, 21 October 2010 by Cameron (talk | contribs) (Created page with 'You can use '''onloadfunc''' to create a custom Browser Script that runs whenever a record is first opened. * This is in place in the UTA at Level 1, Level 2, Level 3 and Inv…')
You can use onloadfunc to create a custom Browser Script that runs whenever a record is first opened.
- This is in place in the UTA at Level 1, Level 2, Level 3 and Invoicing, as well as on Contacts and Accounts
- It only runs in Edit mode at Level 1, Contacts and Accounts, not in view mode.
Instructions:
- Create a Custom Field on the page of type: Custom Field Type: Special – Browser Script
- Include a function in the Browser Script called onloadfunc that includes the JavaScript you wish to execute when the record first opens.
Syntax:
function onloadfunc() { do this RunAnotherFunction() do that }