I want to control the order of choices in a date-type filter.

M_Tomy
Tera Expert

Experts

 

Please tell me...

 

Where do I control the order of choices in a date-type filter?
I want to change the default display order of the yellow boxes in the figure below.
I have made custom choices for a date-type filter for an interactive filter, but I would like to know something new about controlling the order of the items.

Right now they are added at the end of the date filter, which is a bit inconvenient.

 

20230310_cap1.PNG

 

 

▼Related Questions
https://www.servicenow.com/community/developer-forum/i-want-to-add-one-more-process-to-the-business-...

 

Best regards.

1 ACCEPTED SOLUTION

Todd O
Tera Guru

Hi @M_Tomy, there is a business rule called "Get Date Filter Options for Date Filters."  Navigate to the advanced tab of that business rule and manually reorder the "answer.add" lines in there so that the order matches your requirements.  This should now order the items the way you want. 

 

p.s., when you're editing the interactive filter, they may not show up in order there but when you use the interactive filter on a dashboard, it should order them correctly there. I hope this help you.

 

 

View solution in original post

2 REPLIES 2

Todd O
Tera Guru

Hi @M_Tomy, there is a business rule called "Get Date Filter Options for Date Filters."  Navigate to the advanced tab of that business rule and manually reorder the "answer.add" lines in there so that the order matches your requirements.  This should now order the items the way you want. 

 

p.s., when you're editing the interactive filter, they may not show up in order there but when you use the interactive filter on a dashboard, it should order them correctly there. I hope this help you.

 

 

Dear Todd O.

 

I have been out of the ServiceNow business for a while and am late in responding.
I have resolved the issue, thank you.

 

Best regards.