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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.