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
3 weeks ago
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
3 weeks ago
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
2 weeks ago
@Naveen20 Thank you ...!🙂