We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

TroyP0581187515
ServiceNow Employee

You can change the search box text on the search widget where AI is enabled (i.e. ctrl + right click > instance options) by changing the “placeholder” field.

 

TroyP0581187515_4-1768415725377.png

 

 

TroyP0581187515_2-1768415615800.png

TroyP0581187515_3-1768415673760.png

However, if you would like to include a dynamic value such as current logged on user's name, for example:  TroyP0581187515_5-1768415914845.png

 

Create a UI message in the classic view: All > System UI > Messages

In this example "Search1" where {0} in the message text refers to the user variable we will replace in widget's code in the next step. 

TroyP0581187515_6-1768416048531.png

 

Clone the “Typeahead Search” widget and modify the following code at line 52:

options.placeholder = options.placeholder ? gs.getMessage(options.placeholder) : gs.getMessage('Search1', gs.getUser().getFirstName());

 

Code from the original unedited widget below as a reference:

TroyP0581187515_0-1768415467492.png

 

Then replace the search widget on your portal with your cloned widget.

Version history
Last update:
‎01-14-2026 10:47 AM
Updated by:
Contributors