Client Scripts
Client Scripts
Client Scripts
ServiceNow Documentation
This PDF was created from content on docs.servicenow.com. The web site is updated frequently.
For the most current ServiceNow product documentation, go to docs.servicenow.com.
You can find the most up-to-date technical documentation on the ServiceNow web site at:
http://docs.servicenow.com
The ServiceNow site also provides the latest product updates.
If you have comments about this documentation, submit your feedback to:
docfeedback@servicenow.com
Company Headquarters
2225 Lawson Lane
Santa Clara, CA 95054
United States
(408)501-8550
Client scripts
Clients scripts allow the system to run JavaScript on the client (web browser) when client-
based events occur such as when a form loads, after form submission, or when a field
changes value.
Client API
The client-side Glide API provides classes and methods that you can use in client-side
scripts.
UI scripts
UI scripts provide a way to package client-side JavaScript into a reusable form, similar to
how script includes store server-side JavaScript. Administrators can create UI scripts and
run them from client scripts and other client-side script objects and from HTML code.
Client script best practices
Well-designed client scripts can reduce the amount of time it takes users to complete a
form.
Create a catalog client script