Dynamic Filter Options for Non-Reference Fields

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 04:55 AM
Hello Community!
I have one, hopefully simple, question related to Condition Builder. In ServiceNow Docs, the Dynamic Filter Options are described in a way, that those can (only) be used with Reference fields: https://docs.servicenow.com/bundle/xanadu-platform-user-interface/page/use/using-lists/task/t_Dynami...
But, when looking at the form, one can also select other Field Types, like a String. Does anyone know, if Dynamic Filter Options can be used for other than Reference fields? (It seems not)
Thank you all for your input, already in advance 🙂
Cheers,
--Mikko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 06:15 AM
In theory you can, but what are you looking for?
You can check on the OOB examples that use 'string' as field type. You will see numbers and names coming by a lot.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 11:54 PM
Hi Mark,
I'm looking for "scripted conditions" that check for different patterns or even a simple length of the text input. For example "list all business applications where description is less than 100 characters long" or "list of servers that doesn't match with a particular naming convention (pattern/regex)."
We have our own Store app, which utilizes Condition Builder extensively. We would like to use this "Dynamic Filter Option" since it would be an out-of-the-box way of adding scripts to conditions.
So, how to turn "in theory" into "in practice" 🙂