Create drop-down interactive filter using values from String type field

Anne25
Tera Contributor

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. 

 

Anne25_0-1688464649990.png


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!

4 REPLIES 4

Voona Rohila
Kilo Patron
Kilo Patron

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

Anne25
Tera Contributor

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!

Hello, are you using the alm_asset to create the interactive filter? Have you tried using class = hardware instead?

Community Alums
Not applicable