Within Service Portal, unable to hide empty variables displayed in the UI Formatters (Variable Editor and Approval Summarizer) on Requested Item and Approval forms so that only variables containing data (either system or user generated) are displayed in the formatters.
Service Portal is built on Angular whereas UI Macros are built on Jelly, which will not work in Service Portal
GENERAL RECOMMENDATIONS for IMPLEMENTING CUSTOM BUSINESS REQUIREMENT:
1) Here are the 2 UI Formatters used on the Requested Item (sc_req_item) and Approval (sysapproval_approver) forms:
2) The 'Variable Editor' UI Formatter uses a UI Macro 'com_glideapp_servicecatalog_veditor' below which could be customized to hide any needed variables:
3) The 'Approval Summarizer' UI Formatter currently uses 'approval_summarizer_master.xml' formatter which is embedded in our base code and not possible to customize. Alternately, you could build a custom UI Macro similar to 'com_glideapp_servicecatalog_veditor' and use this formatter instead and implement your customizations there. However we would need customers to own this, as customized implementations are beyond support scope.
4) Alternately, instead of customizing the UI Formatters above, customers could implement Catalog Client Scripts at the Catalog Item level and set them to apply on Requested Items by clicking on '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. Again, we would need customers to own this, as customized implementations are beyond support scope.