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
About the Author
About the Reviewer
Customer Feedback
Free Chapter
Introduction to ServiceNow

Disabling client-side scripts

There may be times when we want to disable a particular client-side script. To do this, all we need to do is uncheck the Active field for the record. The script definition will remain in the system; however, it will not be attached to the form and execute.

For example, let us disable the Change short desc to title case client script. Open the appropriate record in the Studio using the application explorer on the left.

In the form that will open in the content area of the Studio, uncheck the active field and click on the Update button. Now when you change the Short description field, in the Booking Request form, the onChange client script will not execute, as it marked as inactive. We can mark it as active whenever we wish but for now let us leave it as inactive.

Creating a scope UI script

To create a UI script for a scoped application, we need to use the Studio and, in the Create Application File wizard, as shown in the following screenshot, select Client Development...