- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2020 07:26 AM
Hi All,
Is there any way to apply default filter on reference field so that user can click on search and new window pop-up with filter applied by default at first and if user does not satisfy with the records obtained then he can click on 'All'' to get whole list. ??
Thanks.
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2020 05:59 AM
The ability to set up a filter that is editable on a reference field is not currently available. I suggest you add it to the Idea Portal on the community. Our product managers review the idea portal for customer requests all the time. Sorry I didn't have an easy to configure (and maintain) option for you out of the box.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2020 07:32 AM
Make use of reference qual condition:
Check this doc:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2020 07:37 AM
A reference qualifier doesn't quite fit the question asked. I thought of that at first too, but there's no way to allow people to 'unfilter' when a reference qualifier is applied.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2020 07:43 AM
Interesting one then, never tried removing the filter!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2020 07:57 AM
You would have to somehow get a sysparm_query in to the sys_ref_list view, but I'm not sure if that's possible or not. Dictionary attribute maybe? Interested to see what people come up with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2021 03:16 PM
You can do this via an onLoad Client Script that uses DOM manipulation and reflistOpenUrl. You can search this Community for "reflistOpenUrl" and find more details on how to do this, but I don't recommend it. "Thou shalt not edit the DOM."
An alternate way to do this without hurting our ServiceNow HealthScan scores is to use an advanced reference qualifier on the field (or its dictionary override) that includes a field the user can set to control it. For example, if you want the various reference fields on Incident to have choice of being sensitive to the Company or Assignment group, you could add fields like "Restrict searches to Company" or "Restrict searches to Group" and perhaps default those to true. The user could then opt to set it to false if they need to see all. This is less user friendly than the DOM approach, and nobody wants more fields, but hey, it obeys the DOM commandment. 😉