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

Customizing and extending the platform

Sometimes, there is a desire to perform manipulations that GlideForm cannot do. This might include supporting additional events, such as onmouseover, or altering the layout of the page. Although I'll tell you how you can achieve this, I'll recommend that you never do it.

Note

This section assumes that you have a basic understanding of Dynamic HTML.

Firing on more events

Client Scripts allow you to run the code when a field changes or when the form is loaded or submitted. However, the browser can tell JavaScript code about many more events, such as zooming on a tablet, moving a mouse, or dragging files.

One way is to create an onLoad client script that sets up these events manually. The following code uses some ...

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