Create drop-down interactive filter using values from String type field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2023 02:59 AM
Hello,
I have a requirement where I need to create a drop-down interactive filter. The problem is the field type for category is string. Sample values are Desktop PC and Monitor. In drop-down, I need to display these two values only. My display field is Category but since it's a string field, I'm getting all records with category of Desktop/Monitor.
Does any one has an idea how to create drop-down interactive filter using string field type? I need to display Desktop PC and Monitor only in drop-down. Thank you in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2023 05:37 AM
Hi @Anne25
can you explain in detail of your requirement and also share the dictionary details of the category field.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2023 05:55 AM
Hello @Voona Rohila,
I have counter widgets for total number of active and inactive assets. These widgets follow the interactive filter I created. My interactive filter supposedly should display two categories which is Desktop PC and Monitor. Depending on what category will I select, the total number of active and inactive assets should change real-time.
However, category field is a string type of field not a reference nor choice field. When I tried creating an interactive filter with Display field - 'Category', in my drop-down list it displays like the image I attached in my original post. What I need is to display just two values - Desktop PC and Monitor and select between the two.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2023 06:31 AM
Hello, are you using the alm_asset to create the interactive filter? Have you tried using class = hardware instead?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 12:09 AM