15 views


Description


The new "SC Order Guide" [widget-sc-order-guide-v2] widget has the "Add to Cart" button which was not available in the deprecated SC Order Guide widget. However, currently there is no out of box functionality such as Instance options available on this widget to disable this button if needed.

This article will describe how this button can be hidden.

Procedure


  • Clone the out of box SC Order Guide [widget-sc-order-guide-v2] widget.
  • On the cloned copy, comment out the following line from "Body HTML Template" section: Line 220 
<button ng-disabled="submitted" name="add_to_cart" ng-click="triggerAddToCart()" class="btn btn-default pull-right m-r m-l m-r-6">${Add to Cart}</button> 
  • Save and add this cloned widget on the service portal page.

Applicable Versions


Kingston

Additional Information


https://docs.servicenow.com/bundle/kingston-servicenow-platform/page/build/service-portal/concept/sc-order-guide-widget.html

Article Information

Last Updated:2018-09-10 05:32:59
Published:2018-09-09