How to disable requested for from Two-Step checkout in Shopping cart

yonathanperez
Kilo Contributor

I need to disable the requested for from the Two-Step checkout Shopping cart but I am not sure how to do it. I have noticed in other posts that this can be done by going to Service Catalog > Catalog Definition > Maintain Cart Layouts. but I do not have the Maintain Cart Layout option in my ServiceNow instance.

I need this to be disabled or at least, the default value of the requested for to show the information entered on a variable on the requested item. Do you guys have any suggestion to disable this or a script to be entered on default value that will get this done?

9 REPLIES 9

Hi Yonathan,



Are you able to confirm if the above solution is what you were after? If so please mark this as the answer so this topic can be closed out.



Cheers,




Rob


Rahul Jain11
Kilo Guru

Hi,



sc_cart_view_requested_for is teh UI macro used to display the requested_for field. You can modify it and make it disable from there.


Thanks. I was able to find the IU Macro for that (catalog_requested_for) and I was able to disable it, but it is only removing the field, it is still leaving the words "Requested for" on the screen. See screenshot:



find_real_file.png


Can you create a UI Policy on that page to hide the label?


hadyndickson
Mega Expert

Edit this UI Macro /sys_ui_macro.do?sys_id=742a59150a0a0b03001337c345583d8b



For an OOB file for Eureka edit lines 356 - 359 to the following:



      <p class="order_details" style="display:none;">
              ${gs.getMessage('If this request is for someone other than yourself please provide detailed information in the fields provided below.')}
      </p>
      <table class="wide" style="display:none;" cellspacing="0" cellpadding="3">