Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Modify button text in Contextual Search results

MMGF
Tera Contributor

In the Employee Center when a user is in the Create an Incident item and types in the description the Contextual Search results that result in a catalog item have a button that is labeled 'Order'. We would like to change the text to something else - like 'Select' instead.

 

I tried copying the OOB UI Macro cxs-table-result and changed what I thought was the right text. I then created a new Formatter for Contextual Search and referenced the new UI Macro. I cleared the cache.

The button still shows 'Order'.

 

Is this the correct process? Is it the right UI Macro? If so, which line should be changed? If not, how can I modify this text?

6 REPLIES 6

ShubhamGarg
Kilo Sage

Hello @MMGF ,

You can change the label from 'Order' to 'Select' using Search Action Configurations table [cxs_ui_action_config].

1. Open the table using cxs_ui_action_config.LIST

2. You can put a filter -

Base configuration = Incident [incident]

Active = true

Research Resource = ServiceCatalogSearchResource

ShubhamGarg_0-1723652602115.png

 

3. Open the record and change 'Action Label'.

4. Save

Hope it helps.

Kindly mark this as Accepted Solution/Helpful if above info. helps in any way and help in closing this thread.

Regards,

Shubham

shrikantkhodke
Tera Contributor

Hello @MMGF 

Yes, you can change the label to select.
-Type cxs_rp_config.list in Navigation.
-The 'Record Producer Configurations' table get opened, then type Create Incident in Name column
- Select the record and go to the related list 'Search Action Configurations'
- Then change the Action label of Order into Select

It will work.

Hope it helps.

Kindly mark this as Accepted Solution/Helpful if it is really helped you.

shrikantkhodke_0-1723653989971.pngshrikantkhodke_1-1723654030618.png

 

 

 

MMGF
Tera Contributor

I tried both of these and I still see 'Order' instead of 'Select'.

Maybe there is a different configuration table I need?

Hii @MMGF ,

Please select the correct record producer, might be you have chosen a different one and do logout and login once