After typing in reference field if no match is found show alert message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2017 08:06 AM
Hi,
Customers in my company are pretty new to ServiceNow. So they are not sure about how each field behaves in SN.
So we want to show an alert message whenever user is done with typing in reference field and no match is found.
I am not sure how to implement this one as onChange script will not work here unless we get a valid value in the field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2017 08:16 AM
Hi Purbali,
The catch here is when the system will know that the user is done with typing. Have you tried enabling the auto complete field attribute(ref_auto_completer) which might be helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2017 08:20 AM
Hi Dilip
Auto complete is enabled. Issue is user sometime search with nicknames of a person and it doesnot show anything. So I was wonder if I can implement onMouseover or something else HTML events to get that functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2017 08:21 AM
Hi Purbali,
I guess that's already part of the implementation once you are done with typing and if it doesn't find anything matching,
It shows the invalid reference error but that's only when you change the focus from that field.
I don't think any client script or any custom solution is further required.
If you really need one, then you can add a ref icon and add up a UI Macro to say that nothing found in a GlideModal popup.
Adding a UI Macro (button) to Any Field with Fuji Icons
Please mark correct/helpful based on the impact of the response.
Thanks
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2017 08:31 AM