Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
ServiceNow: Building Powerful Workflows

You're reading from   ServiceNow: Building Powerful Workflows Automating IT Service Management

Arrow left icon
Product type Course
Published in Aug 2017
Publisher Packt
ISBN-13 9781788628730
Length 1330 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
Tim Woodruff Tim Woodruff
Author Profile Icon Tim Woodruff
Tim Woodruff
Martin Wood Martin Wood
Author Profile Icon Martin Wood
Martin Wood
Ashish Rudra Srivastava Ashish Rudra Srivastava
Author Profile Icon Ashish Rudra Srivastava
Ashish Rudra Srivastava
Arrow right icon
View More author details
Toc

Table of Contents (39) Chapters Close

Title Page
Credits
Preface
1. Module 1 FREE CHAPTER 2. The Interface 3. Lists and Forms 4. UI Customization 5. Understanding Data and Relationships 6. Tasks and Workflows 7. UI and Data Policies 8. User Administration and Security 9. Introduction to Scripting 10. The Server-side Glide API 11. The Client-side Glide API 12. Server-side Scripting 13. Client-side Scripting 14. Debugging 15. Pro Tips 16. Module 2 17. Getting Started with Service-Now 18. Performing Core Configuration and Management Tasks 19. Building Data-Driven Application 20. Configuring Alerts and Notifications 21. Building and Configuring Reports 22. Creating and Configuring Workflow Activities 23. Auditing and Diagnosing Service-Now 24. Module 3 25. ServiceNow Foundations 26. Developing Custom Applications 27. Server-Side Control 28. Client-Side Interaction 29. Getting Things Done with Tasks 30. Events, Notifications, and Reporting 31. Exchanging Data – Import Sets, Web Services, and other Integrations 32. Securing Applications and Data 33. Diagnosing ServiceNow – Knowing What Is Going On 34. Packaging with Applications, Update Sets, and Upgrades 35. Making ServiceNow Beautiful with Service Portal and Custom Interfaces 36. Bibliography

GlideForm (g_form)


The GlideForm API is exposed within client-side scripts as the variable g_form. This API provides methods for interacting with forms and fields, adding messages for the user, adding and removing options from a drop-down field, and more.

Below, we'll discuss some of the more commonly used and useful methods of the GlideForm API, and see how they can be put to use.

Setting/clearing messages on the form and fields

There are multiple methods for setting and clearing messages within forms, both at the top of the user interface (similar to the behavior of the server-side APIs: gs.addInfoMessage() and gs.addErrorMessage()), and against specific fields.

These methods are: showFieldMsg(), hideFieldMsg(), showErrorBox(), and hideErrorBox().

These methods of the g_form API are extremely useful for communicating information to the user from client scripts or UI policies, such as whether or not a field meets certain validation criteria.

One such set of field-level methods of the GlideForm...

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 €18.99/month. Cancel anytime