ServiceNow Client Scripts

Gaurav Tripathi

Any application that can be written in JavaScript, will eventually be written in JavaScript.

~Jeff Atwood

Client 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. Use client scripts to configure forms, form fields, and field values while the user is using the form.

Client Scripts come in four basic types: onLoad , onChange , onSubmit , and onCellEdit

You will learn following:

  • Overview of Client Script in ServiceNow
  • OnLoad Client Script in ServiceNow
  • OnSubmit Client Script in ServiceNow
  • OnChange Client Script in ServiceNow
  • OnCellEdit Client Script in ServiceNow
  • Technical Best Practices of Client Scripts in ServiceNow


Gaurav Tripathi