Client scripts

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 ...

Get Mastering ServiceNow Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.