Client Script Type - onLoad()
- Script runs when a form loads and before control is given to the user
- Typically used to manipulate a form's appearance or content on screen
Users do not have the ability to modify form fields while an onLoad() Client Script executes.
For example, a baseline onLoad() Client Script on the Change form marks Standard Change fields read-only before control is given to the user.
Usually, onLoad() Client Scripts perform client-side-manipulation of the current form or set default record values.