Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Price, quantity, and total on approval screen

tgcorbin
Mega Contributor

Hello,

I was wondering if there was a way for me to disable the price, quantity, and total options from the approval screen as seen here?

ritm_price_quan_etc.png

Thanks

1 ACCEPTED SOLUTION

Robert Chrystie
ServiceNow Employee
ServiceNow Employee

Hi Trevor,



I believe what you're looking for is a UI Macro called 'approval_summarizer_sc_req_item'.



If you check the form layout on the approval table, you should notice that there is an item called Approval Summarizer.   This is a Formatter, which defines a UI Macro to load on the page.   For this one, there are a series of UI Macros that work together to get down to the 'approval_summarizer_sc_req_item' macro, since your approval is for a Requested item.


View solution in original post

4 REPLIES 4

Robert Chrystie
ServiceNow Employee
ServiceNow Employee

Hi Trevor,



I believe what you're looking for is a UI Macro called 'approval_summarizer_sc_req_item'.



If you check the form layout on the approval table, you should notice that there is an item called Approval Summarizer.   This is a Formatter, which defines a UI Macro to load on the page.   For this one, there are a series of UI Macros that work together to get down to the 'approval_summarizer_sc_req_item' macro, since your approval is for a Requested item.


Thanks to you, I have found out how to completely get rid of them, but are you aware of a way to make it so that they are hidden if the price is 0? I realized that I'm not sure if I always want them to be hidden because it could be applicable in some situations.


Hi Trevor,



The UI Macro uses Jelly, which can be a bit challenging if you've not worked with it before.   What you'll want to do is add a j:if to wrap the HTML that adds the price.   The j:if will need to check if the price of the item being approved has a value.   The links below have some pretty good examples of how to use an IF.



Jelly tags


Content Management and the Apache Jelly engine


paulfiegl
Tera Contributor

Hi,

Is there a way to add the recurring price and frequency to the summary?  We have a requirement to show the recurring price and frequency to allow for more visibility behind the different costs hitting a cost center.

 

Thank you,

Paul