how to customize Order Confirmation dialog in Service Catalog

TY10
Mega Contributor

Hi.
We want to know how to customize Order Confirmation dialog in Service Catalog.
The requirement is:
1. Can the requesting user be made uneditable and can be made read-only?
2. Can the delivery information (optional) be hidden?
3. Can special instructions (optional) be hidden?

 

1 ACCEPTED SOLUTION

Comment from line 27 to 38 in HTML,

find_real_file.png

 

View solution in original post

20 REPLIES 20

In service portal > widgets, search for SC Catalog Item and once you open that you can find HTML, CSS, Client side and server script.

Thank you.

I set it as follows, but it has not been realized yet, please tell me what to do.

1. Clone Catalog Checkout widget(Name:Copy of Catalog Checkout) and set ID = sc-checkout-clone.

2. Clone SC Catalog Item widget(Name:Copy of SC Catalog Item).

3. Modify Server script of "Copy of SC Catalog Item" to

(line22) embeddedWidgetId: 'sc-checkout-clone', 

4. Modify Body HTML template of "Copy of Catalog Checkout" to

(line29) <!-- <textarea class="form-control" ng-if="c.showDeliveryAddr" ng-model="c.deliverTo" id="deliver-to" ng-model-options="{ updateOn: 'blur' }" ng-change="c.changeShippingInfo()" rows="3"></textarea>-->

(line35) <!-- <textarea class="form-control" ng-if="c.showSpecialInstructions" ng-model="c.special_instructions" id="special-instructions" ng-model-options="{ updateOn: 'blur' }" ng-change="c.changeShippingInfo()" rows="3"></textarea>-->

Have to comment HTML body line 29 and 35 in sc-checkout-clone, not in Copy of SC Catalog Item. After making those changes make sure you replace the SC Catalog Item widget with Copy of SC Catalog Item widget in catalog item page.

Thank you for your reply.

>After making those changes make sure you replace the SC Catalog Item widget with Copy of SC Catalog Item widget in catalog item page.

"catalog item page" is not editable, so what should I do?

In service portal > pages, search for Service Catalog (sc_cat_item) page and once you open that click on Instance as shown below

find_real_file.png

In the widget section replace SC Catalog Item with cloned widget

 

find_real_file.png