UI Page

  • UI pages can be used to create and display forms, dialogs, lists and other UI components.
  • To Create UI Page, navigate to System UI > UI Pages > New

UI Macro

  • UI macros are discrete scripted components administrators can add to the user interface.
  • UI macros are typically controls that provide inputs or information not provided by existing field types.
  • Administrators can create their own UI macros to provide custom controls or interfaces. Creating UI macros requires knowledge of Jelly script. Review the existing UI macros for examples and suggested approaches. Those who want to build custom interfaces with JavaScript technologies should consider Service Portal as an alternative.

Sample UI Page and UI Macro Script

Create UI Macro

Navigate to System UI > UI Macros in your navigation pane in ServiceNow, and create a new UI Macro.
Name: ExampleHeader
Active: checked
XML:
Click Update.

Navigate to System UI > UI Macros in your navigation pane in ServiceNow, and create a new UI Macro.
Name: ExampleFooter
Active: checked
XML:
Click  Update.

Create UI Page

Navigate to System UI > UI Pages
Click the NEW button on the UI Page list to create a new UI Page.
Name: ExampleUIpage
HTML:
Update the UI Page and click try it to preview the UI Page.