Book Image

ServiceNow Application Development

By : Sagar Gupta
Book Image

ServiceNow Application Development

By: Sagar Gupta

Overview of this book

ServiceNow provides service management for every department in the enterprise, including IT, Human Resources, Facilities, Field Service, and more. This book focuses on all the steps required to develop apps and workflows for any of your business requirements using ServiceNow. You will start with the first module, which covers the basics of ServiceNow and how applications are structured; how you can customize the dashboard as required; and also how to create users. After you get used to the dashboard, you will move on to the next module, Applications and Tables, where you will learn about working with different tables and how you can create a scope other than the global scope for your application. The next module is Scripting and APIs, where you will learn Scripting in ServiceNow and use powerful APIs to develop applications. The final module, Administration Essentials, covers debugging, advanced database features, and scheduled script creation. By the end of the book you will have mastered creating organized and customer-friendly applications
Table of Contents (21 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Free Chapter
1
Introduction to ServiceNow

Chapter 7. Client-Side Scripting

Now that we are aware of all the basic features of the ServiceNow platform, including the different scripting options available to us, let us start writing some client-side scripts to enhance our application.

As discussed in the previous chapter, client-side scripts are JavaScript code that execute on the browser and have access to the client-side Glide API. We can employ client-side APIs to enhance our instance beyond the standard configuration and features. Client-side scripts can be used to perform many different operations that execute within the client's browser and have access to the entire DOM along with the Glide API.

In this chapter, we will learn how to create client-side scripts and the different ways we can execute the client-side code. We will also learn how to make use of the client-side Glide API and some of the most widely used functions available.

In this chapter, we will learn how to create the following client-side scripts:

  • Client scripts
  • UI...