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
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 macros

A UI macro is similar to the HTML section of the UI page and consists of Jelly code. The UI macro, however, is not tied to any page, and can be reused in multiple places in the system, including (using g:insert, g:inline, or g:call) other UI macros and UI pages. It can also be added to a form by creating a formatter and adding it to the form. Let us now create our first UI macro.

In Studio, open the Create Application File wizard and select Forms & UI | Macro, as shown in the following screenshot, and click on the Create button:

It will bring us to the new record form for a UI macro. Fill in the form fields with the following values:

  • Name: international_notice (make sure the name doesn't contain any spaces)
  • API Name: (This will be automatically populated)
  • Description: Shows a link to state.gov site where end-users can find more details about their international...
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 ₹800/month. Cancel anytime