Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Trigger Search Button Action on Enter Key Press in ServiceNow UI Builder Workspace

Tejas Adhalrao
Kilo Sage

Hi Community,

I have created a custom page in ServiceNow Workspace using UI Builder. The page contains:

  • 2 input fields
  • 1 Search button

Currently, users enter values and manually click the Search button to fetch matching records.

New requirement:

  • When the user presses the Enter key inside the input field, the same Search button functionality should execute automatically
  • It should behave exactly like clicking the Search button
2 REPLIES 2

Naveen20
ServiceNow Employee

You can achieve as below. Using the event - Input enter keydown on the text field. Whatever action is being taken on search click, same can be added here.

Naveen20_0-1778491657820.png

 

@Naveen20  Thank you ...!🙂