Add a new filter option for Date Fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 02:39 AM
Hello All,
is it possible to add new filter option for Date Fields ?
I would like to have an option as "Last 10 Days and Last 14 days"
If anyone knows a way of adding a new option in the filter, let me know as this would be more user friendly for users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 02:51 AM
Practically no, as these are some where in core code.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 02:56 AM - edited ‎05-21-2024 02:57 AM
Hi @smrithi ,
There is one BR which contains all the date filter name - "Get Date Filter Options for Date Filters" you can check this BR and add 2 options last 10 days and last 14 days.
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 03:03 AM
I tried the same but it is not showing the option in filter for any date fields .
Could you plz let me know how to acheive it .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 03:09 AM
Hi @smrithi,
I don't believe this is possible and Get Date Filter Options for Date Filters is applied in the Interactive Filters.
https://www.servicenow.com/community/developer-forum/add-option-to-date-filter/m-p/1937605/page/2
The only workaround I can think of is to create a filter and share it with the users - https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/use/using-lists/task/t_...
Cheers