How to do it...

  1. Open any standard web browser and type the instance address.
  2. Log in to the instance using the credentials.
  1. Now click on the settings icon, select the Developer option, and turn on the JavaScript Log and Field Watcher options. A new pane will be opened at the bottom of the screen, where you need to select the JavaScript Log section:
JavaScript log screen
  1. If you want to log information to the JavaScript log, then Service-Now provides a global jslog() function, which passes information to the JavaScript log sections.
  2. If you want to capture the JavaScript log to the client-side script, then you can follow this process:

Get ServiceNow: Building Powerful Workflows now with O’Reilly online learning.

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