- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2016 12:00 PM
Hi
Is it possible to filter the search result in a reference field, say for example if a project field is referenced in a table like
can i filter the results when i click on the search icon as shown in the screen shot above?
Regards
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2016 12:36 PM
Hi John,
Yes, you can do that quite easily! Reference fields can use what's called "Reference qualifier" to filter records on the table they reference. By default, you get all the records. If you want to filter them, you can do that quite easily using a reference qualifier. They range from simple (no scripting required) to more advanced (scripted.)
Go to the dictionary entry for that field and note the "Reference specification" section.
Here's an example of a reference qualifier on a table to simply take the Active records of the User table.
Reference: Reference Qualifiers - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2016 02:09 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2016 01:47 PM
Thanks for the update John.
Unfortunately you can only have static popup view for a reference field. You can however define additional columns in drop down if required.
Please raise enhancement request if you would like to get your idea in to eyes of our product team…
Enhancement requests: Tell us how you would improve the ServiceNow product
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2016 01:52 PM
Thanks alot Pradeep for taking your time
Best Regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2016 02:07 PM
You are very welcome John. Happy to help you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2020 09:12 AM
Hi
I've found an issue with the filter builder for a list not respecting the reference qualifier setup in the dictionary.
(e.g.)
- A lookup table has a type field, with the refQuals setup on referring tables as:
javascript:"type="+current.getTableName()" - This works fine when choosing reference values on records in those tables.
- However, in the list filter builder for a referring table it is still showing all values from the lookup.
Any thoughts, ideas, or suggestions? I tried a before query BR on the lookup table as an approach, but it doesn't seem to have access to the parent record to use in determining the correct type to update the query.
Thanks,
-Brian