Trigger Search Button Action on Enter Key Press in ServiceNow UI Builder Workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2026 01:47 AM
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
Enterkey inside the input field, the same Search button functionality should execute automatically - It should behave exactly like clicking the Search button
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2026 02:28 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2026 08:55 PM
@Naveen20 Thank you ...!🙂