Custom Interactive Filters - how a user's last choice can stay persistent such as interactive filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 07:49 AM - edited 05-21-2024 04:15 AM
When viewing an interactive filter on a dashboard and initial default value is displayed (e.g. "All") but after a user selects adjusts the filter, the next time the user comes back to the dashboard, the last selection will display, not the default. This does not work for custom interactive filters. Does anyone know how I can implement this for a customer interactive filter? I'm thinking it would have to be set within the java script. I do not see options elswhere.
Our custom interactive date filter is a widget but the heart of it is a UI macro (all java script).
Background:
I've seen many posts expressing a desire to create a default display for custom interactive filters. We have a similar request for our custom date interactive filter. The organization desires a default view (e.g. instead of "all" default would be "closed / on / this year").
From reading prior posts I see that "The problem with defaults is that the report request has already been sent. You have to force another run of the report (this is why custom interactive filters do not support default values)." https://www.servicenow.com/community/platform-analytics-forum/default-on-load-filter-for-custom-inte...
Anyway, I'd prefer not to set a default value as it would impact other dashboards that use the same filter and if I could get the user's last choice on the customer interactive filter to appear the next time they go to the dashboard, this would meet the request.