How to make "Requested for" field read only/disable on the Order confirmation 2-step Check Out page?

Raja6
Tera Expert

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 .

6 REPLIES 6

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

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 Roethof
Tera Patron
Tera Patron

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

LinkedIn

Mark Roethof
Tera Patron
Tera Patron

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.

find_real_file.png

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

LinkedIn

@Mark Roethof Where can I find the page specific CSS mentioned above?

Regards,
Bharath