How to hide table fields from filter (Condition Builder) in ServiceNow?

carlosgonza
Tera Expert



Hi all,

I would like to hide certain fields (including system fields like Created, Updated, Sys ID, etc.) from appearing as options in the filter (Condition Builder) for a specific table. I’ve checked the Dictionary settings, but there doesn’t seem to be an option to remove fields from the filter—only to set the Display value. UI Policies only affect forms, and making a field inactive removes it entirely, which is not what I want.

Is there any supported way to prevent specific fields from showing up in the filter, or is this a platform limitation? Any workarounds or best practices would be appreciated.

Thanks!

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@carlosgonza 

you can't control/restrict the fields shown there.

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

View solution in original post

5 REPLIES 5

OleksiyK
Tera Expert

Hi @carlosgonza 

if you want to bother, there is a way. Take a look at Dictionary Attribute "restrictTo"   ( https://your-instance.service-now.com/sys_schema_attribute.do?sys_id=be991013eb721100d4360c505206fe2... )

 

There you can either specify a fix list of fields available for choice, in this case the selection is static and won't reflect potential newly added fields unless attribute updated.

 

Or you can specify another field (perhaps hidden) and maintain there a more dynamic list of fields. Consider String type field with "Calculated" value and calculation script that traverses all available fields and excludes eg. any with "sys_" in their name.

 

See also https://www.servicenow.com/community/servicenow-ai-platform-forum/on-a-condition-type-field-can-we-l...

 

And don't hesitate to change your "Accepted answer" choice in case 😄