Available Data

What Data Can You See in a Client Script?

  • Use ServiceNow's predefined client-side classes and methods to

    Control how the platform looks and behaves in a web browser

  • Enhance the end User eXperience

  • This class reviews the most popular Client-side APIs

    • g _ form (GlideForm)
    • g_user (GlideUser)
    • g_scratchpad (in conjunction with a Display

      Business Rule, Module 5)

ServiceNow provides client-side JavaScript APIs:

  • g_form — object whose properties are methods used to manage form and its fields in the record.
  • g_user — object whose properties contain session information about the currently logged in user

    and their role(s).

  • g_scratchpad — object passed to a Client Script from a server-side script known as a Display Business

    Rule. The object's properties and values are determined by the server-side script.

In addition to these pre-defined global variables, you also have any local variables you declare in a
script.

Visit developer.servicenow.com for the complete list of available client-side classes and methods.

results matching ""

    No results matching ""