Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to hide empty variables displayed in the UI Formatters on Requested Item and Approval forms in Service Portal - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to hide empty variables displayed in the UI Formatters on Requested Item and Approval forms in Service Portal
KB0694706

How to hide empty variables displayed in the UI Formatters on Requested Item and Approval forms in Service Portal


3788 Views Last updated : Jun 6, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Learn how to hide empty variables shown in the UI Formatters (Variable Editor and Approval Summarizer) on Requested Item and Approval forms, and only show variables containing data (either system or user-generated) in the formatters.

 

 

Cause

Service Portal is built on Angular and UI Macros are built on Jelly, which will not work in Service Portal.

Resolution

  1. The two UI Formatters used on the Requested Item (sc_req_item) and Approval (sysapproval_approver) forms are:
    • Approval Summarizer (/nav_to.do?uri=sys_ui_formatter.do?sys_id=f2bbad23c0a8011b00ba8af904f61a0e)
    • Variable Editor (/nav_to.do?uri=sys_ui_formatter.do?sys_id=86863af2c611229101b57dcc29ac7666)
  2. The Variable Editor UI Formatter uses the UI macro com_glideapp_servicecatalog_veditor , which can be customized to hide any needed variables.
    • /nav_to.do?uri=sys_ui_macro.do?sys_id=37c219149f2320007bb2ed93ee4bccca
  3. The Approval Summarizer UI Formatter uses the approval_summarizer_main.xml formatter, which is embedded in the base code and not possible to customize.
    • You could build a custom UI Macro similar to com_glideapp_servicecatalog_veditor and use that instead and implement your customizations there.

Instead of customizing the UI Formatters as previously noted, you could implement Catalog Client Scripts at the Catalog Item level. Set them to apply on Requested Items by selecting Applies on Requested Items in the Catalog Client Script. These scripts could handle setting the variable display to not visible in case they do not have a value.

Note: Customers need to perform and own these customizations as they are beyond the scope of Support. 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.