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

UI policies


We can make use of the UI policy to toggle the display, read-only, and mandatory properties of a field when a certain criterion is matched. In essence, we can toggle the display of the Return Date field when the Return checkbox is checked without having to write any script using a UI policy.

Let us show or hide the Return Date field using a UI policy. If you recall, earlier in the chapter, we implemented the same feature using a client script; however, we applied it on the Employee view. Such a toggle feature is not yet available in the Default view. So now we will apply the UI policy to toggle the display of the Return Date field based on the value of the Return checkbox for the Default view instead.

The UI policy will change the display or edit properties of a field when the following three conditions are met:

  • The UI policy is marked as active
  • The field specified in the action is available in the form
  • The conditions set evaluate to true

To create a new UI policy, open Studio and...