Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering ServiceNow

You're reading from   Mastering ServiceNow Unleash the full potential of ServiceNow from foundations to advanced functions, with this hands-on expert guide fully revised for the Helsinki version

Arrow left icon
Product type Paperback
Published in Oct 2016
Publisher Packt
ISBN-13 9781786465955
Length 656 pages
Edition 2nd Edition
Arrow right icon
Author (1):
Arrow left icon
Martin Wood Martin Wood
Author Profile Icon Martin Wood
Martin Wood
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. ServiceNow Foundations 2. Developing Custom Applications FREE CHAPTER 3. Server-Side Control 4. Client-Side Interaction 5. Getting Things Done with Tasks 6. Events, Notifications, and Reporting 7. Exchanging Data – Import Sets, Web Services, and other Integrations 8. Securing Applications and Data 9. Diagnosing ServiceNow – Knowing What Is Going On 10. Packaging with Applications, Update Sets, and Upgrades 11. Making ServiceNow Beautiful with Service Portal and Custom Interfaces

Manipulating forms with GlideForm


A UI Policy conditionally performs a limited set of actions on a form, such as making a field mandatory or hiding it from view. Internally, this uses a client-side class called GlideForm, which is also available for use by the system administrator.

Just like business rules, ServiceNow provides some global variables that smooth the interaction with the platform. On every form, you'll find a g_form object.

Tip

For more information, check out the developer site: https://developer.servicenow.com/app.do#!/api_doc?v=geneva&type=client&scoped=null&to=class__client_glideform__geneva.

Using GlideForm

GlideForm provides getter and setter methods that provide access to the record as it is displayed on the screen. Let's run some code in the JavaScript executor in order to understand what options are available.

  1. Navigate to a new Check-in record (Hotel > Check-ins, then press New). Populate the form as follows, but you don't need to save.

    • Room: 301 (you may need...

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