Client scripts are generally the client-side scripts most used by developers. By default, a client script will run on all views of a form, but it can be set up to only run for a certain view by unchecking the global checkbox and entering a specific view into the view field that appears. Client scripts can also be inherited to tables that extend from a different table. For example, a client script on the task table can be inherited to tables that extend it, like the incident, change, and problem tables. To allow tables to inherit a client script, the inherit checkbox must be set.
The script in a client script can be run at different times, depending on when the developer chooses. This choice is made by selecting a type for the client script.
There are four types of client script, and these are:
- onLoad
- onChange
- onSubmit
- onCellEdit
Let's take a look at each...