Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ServiceNow Application Development

You're reading from   ServiceNow Application Development Transform the way you build apps for enterprises

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787128712
Length 408 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sagar Gupta Sagar Gupta
Author Profile Icon Sagar Gupta
Sagar Gupta
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Introduction to ServiceNow FREE CHAPTER 2. User Administration 3. Data Management 4. Application Scopes 5. Modules, Forms, and Views 6. Introduction to ServiceNow Scripting 7. Client-Side Scripting 8. Server-Side Scripting 9. Jelly Scripting 10. Events and Notifications 11. Workflow Development 12. Debugging in ServiceNow 13. Advanced Database Features 14. Job Scheduling and Data Export-Import

UI scripts


Let us now learn about another type of client-side script feature available in the ServiceNow platform, known as the UI script. The UI script is basically a bundle of JavaScript functions that may also include client-side Glide API calls.

The most important purpose of the UI script is to enable developers to create reusable code. The UI scripts are included and available in all the forms, list of record pages, and other modules. They can be referred to from any other client-side scripts, including the client script and UI policy. Because the UI script code is included in all the forms and page when marked Global, it is a recommended best practice to avoid creating a UI script unless it is really required.

As our intent is to create globally reusable client-side code, we will create the UI script in the Global application scope because only then will our UI script be accessible globally. The ServiceNow platform, starting with the Fuji release, doesn't support the creation of a global...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image