onChange client scripts

Creating an onChange client script is similar to creating an onLoad client script. We need to specify the table and other properties just like in the onLoad script. However, the type field must be set to onChange and we need to specify the name of the field (column) on which the onChange client script will be applied.

Click on the Create Application File button in Studio and select Client Development | Client script and click Create. In the new client script form, as shown in the following screenshot, enter the following values:

  • Name: Toggle return date field
  • Table: Booking Request
  • UI Type: Desktop
  • Type: onChange
  • Field name: Return
  • Active: Checked
  • Inherited: Unchecked
  • Global: Unchecked
  • View: employee

When we set ...

Get ServiceNow Application Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.