How to make "Requested for" field read only/disable on the Order confirmation 2-step Check Out page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2019 11:14 PM
Hi ,The requirement is to make read only/disable the requested for field in the order confirmation page for a particular catalog item (i.e. it should not affect other catalogs). Please suggest some ideas to implement this functionality. Thanks in advance .
- Labels:
-
Service Catalog
-
Service Desk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2019 11:24 PM
Hi,
you need to modify the servicecatalog_cart_template UI Macro.
You have to add some javascript to make the 'Requested For' field read only.
If I have answered your question, please mark my response as correct and/or helpful so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thank you
Cheers
Alberto

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2019 11:25 PM
Hi there,
The Order Confirmation presented is actually the "Catalog Checkout" [sc-checkout] widget. You would need to edit this, and change this line:
sn-disabled="!c.data.disable_req_for"
Unfortunately, you would need to clone and edit the widget. This means you would also need to edit the SC Catalog Item widget which is referencing the Catalog Checkout widget.
Maybe you could override the CSS thru the Page Specific CSS. I haven't tried yet, will have a short look on this. If so, you would not need to clone/edit the widgets.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2019 11:31 PM
Would be doable thru CSS only. Through the Inspector I could already make the field read-only. Just have look which class the Input field is, and add this to the Page Specific CSS. This way, not editing of widgets etc is needed.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2020 11:37 PM
Regards,
Bharath