O'Reilly logo

Mastering ServiceNow by Martin Wood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Meeting Client Scripts

Business Rules may be more accurately named Server Scripts. In this sense, it is obvious what Client Scripts are: they let you run code in the browser as opposed to the server.

In many ways, Client Scripts are very similar to Business Rules. They run JavaScript against a specific table one record at a time. However, instead of running around a database access, Client Scripts add interactivity to a form. They attach to specific events that happen on the page: when a field changes, when the form loads, or when the form is submitted (when a UI Action is clicked on). This then causes JavaScript of your choice to run. In the majority of cases, this will use the GlideForm functions.

The Global Client Scripts run regardless of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required