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 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.