Remove Quantity, Price, and totals from order guide

Gemma4
Mega Sage

Hi everyone,

Can I get your feedback on how to remove price, quantity and total from the order guide. I read the kb below but I was curious if there was an option to do this without editing the html code and cloning the widget? If not, I have a few questions;

 

After the clone, do I need to make any further changes to ensure the copy of the clone with the changes take effect?

If I clone the widget are there any concerns when an upgrade is performed?

Thanks for all your feedback and help!

 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718567

8 REPLIES 8

Tony Chatfield1
Kilo Patron

Hi, as the fields are hard coded into the widget the only option would seem to be to clone the widget and then to remove (or comment out) the code identified in the KB article.
There are no upgrade issues with a cloned widget, other than the code being static and not updated if the source widget is updated - At each upgrade you should evaluate changes to OOB widgets and if necessary, roll any code fixes into your cloned\modified widgets.

 

In order to use the new (cloned) widget you will need to replace the existing OOB widget in the 'Widget Instance' record that is using it, and for most widgets the related record can be found in the Widget Instance list.

 

 

 

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Tony already covered the part on removing the fields.

I haven't looked at this widget specifically. Though when wanting to remove something from a widget, I generally first look if there is a configurable option (like system properties), and else if through CSS we can influence the look and feel. And with that, avoiding cloning and editing widgets when possible.

 

Regarding: 

"If I clone the widget are there any concerns when an upgrade is performed"

You clone it, you own it! ServiceNow won't update your widget. So you won't get any skipped updates or whatever. Though, any updates done on the out-of-the-box widget, you are missing out on. Those updates might be minor minor minor, though could also be bug fixes (which could make your widget not working anymore after a hotfix/patch/upgrade), or could contain new functionality that you are missing out on.

 

So always thing twice when cloning and editing a widget. Is it really worth it, how are you going to maintain the widget, etc..

 

So "If I clone the widget are there any concerns when an upgrade is performed"

YES.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

BharathChintala
Mega Sage

@Gemma4 You dont need to do any widget edits. Just go to page designer click pencil icon of instance where order guide widget is there and there will be checkboxes for each price, quantity and other select what you want to disply

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

Gemma4
Mega Sage

Thank you all for the feedback! I would prefer to not clone the widget if possible and keep things as simple as possible in the configuration. I attempted to utilize page designer and I'm successful with removing Price, 

, total under sc_order status but that impacts Catalog items. When I select sc_order guide to edit there are no options to uncheck Price, total etc. See attached. Is there another widget I should try to edit? To ensure I was on the right one, I submitted an order guide to make price etc visible, then ctrl right click to get to page designer. Do you have any other suggestions to try so I can avoid cloning. 

Thanks so much!

 

 Page to edit.png

SC_order Status Catalog Item4 Can remove4.pngsc_order Status Catalog Items3.pngSc_order guide2 no options.pngsc_order guide1.png