O'Reilly logo

Mastering ServiceNow - Second Edition 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

Taking control of the browser

Client-side code is executed by the browser. This means that, in many respects, it should be considered to be a polite request only! A technical user can easily undo the setting of a mandatory field that was achieved through a UI Policy or by GlideForm, as we'll see in this example:

  1. Open the Check-in form in a new window. Do this by typing x_hotel_check_in.FORM in the application navigator filter text and pressing enter.

    Tip

    You must do this in a new window to escape the frames that interfere with the script.

  2. Populate the fields as you wish, but ensure you set the Date field to a value in the past. This means the Comments field will be shown and made mandatory.

    Because of the UI Policy created earlier in the chapter, if ...

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