Change Button name on Order Guide

vibee
Kilo Expert

Hi,

I need to change the name of a button on the Order Guide. It is the "Choose Options" button.

find_real_file.png

I already did it before by going to UI messages and changing the "choose options" there, but I need it only change on the buttons in this case, and not the process flow.

Because if I change it in UI messages, it changes the name on the process flow as well. I do not want that.

I tried looking in the UI page com.glideapp.servicecatalog_cat_item_guide_view and see that the button is generated here:

<td style="white-space: nowrap; padding-right: 5px; float: right">

                                                      <g:inline template="com.glideapp.servicecatalog_guide_tabs_controls.xml" />

                                              </td>

I just want to know where I can find the label of the button itself and change it? I tried searching for com.glideapp.servicecatalog_guide_tabs_controls.xml under UI macros, script includes, UI messages, UI pages, but I can't seem to find it anywhere.

1 ACCEPTED SOLUTION

Vibee,



  One thing you could do is create a UI script and check the global checkbox, then add an onLoadEvent and put this script in there.


addLoadEvent(function (){


  if($('next_page')){


  if($('next_page').innerHTML=="Choose Options"){


  $('next_page').innerHTML="Application Details";}


  }


  });



find_real_file.png


View solution in original post

9 REPLIES 9

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Vibee,



You need to change it from the message module. Search for key with Choose options and change the value as per your req.


Please note this would be a global change. Replace below link with YOURINSTANCENAME and check the record.


https://YOURINSTANCENAME.service-now.com/sys_ui_message.do?sys_id=1f738724c0a80165005132f5189d2d41&s...


Hi Pradeep,



I have done that before. but when I change it in the UI message module, it not only changes the button, but the process flow formatter as well. I do not want the flow formatter to change as well.


Only the buttons.


find_real_file.png


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

As I mentioned it would be a global change in the system. Unfortunately this is not possible unless you customize the OOTB code.


I am not sure if admin has access to modify the page.


Vibee,



  One thing you could do is create a UI script and check the global checkbox, then add an onLoadEvent and put this script in there.


addLoadEvent(function (){


  if($('next_page')){


  if($('next_page').innerHTML=="Choose Options"){


  $('next_page').innerHTML="Application Details";}


  }


  });



find_real_file.png