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

There are only 2 - I did both but doesn't work. 😞 

Philippe Luickx
Tera Contributor

I went through the whole chain here. Short answer:

aisa_ui_action

 

Longer answer: If you look at the AI Search Assist widget, you'll find that there's a REST API call to

https://yourcompany.service-now.com/now/nav/ui/classic/params/target/sys_ws_operation.do%3Fsys_id%3D...

 

then from there just follow the path of something that looks like "action".