Dashboards & Visualizations

Reset all inputs to default in dashboard studio?

cwilmoth
Path Finder

Is there a way to one-click reset all inputs back to their default values in dashboard studio? I have 7 different inputs (dropdowns and text) that are being used as filter criteria for a table. I would like a way to click "something" and have them all set back to their respective default values. I have done something similar for another dashboard that resets tokens that have been set based on clicked rows in charts/tables (just using a single value panel and setting all of the tokens), but I don't see a way to do this for inputs. Reloading the dashboard doesn't set them back to default either. It requires exiting the dashboard and relaunching.

Thanks

Craig

Labels (2)

cmerriman
Super Champion

I know this question is a little old, but I'm going to post something we did. 

I have a dashboard in Dashboard Studio with a handful of inputs and wanted to reset them on one click. I basically just made a refresh button in the dashboard that loads the dashboard back to default.

I created an image viz like this: 

"type": "splunk.image",
"options": {
"preserveAspectRatio": true,
"src": "data:image/png;base64,iVBOR....."
},
"eventHandlers": [
{
"type": "drilldown.customUrl",
"options": {
"url": "/app/<app>/<dashboard_title>"
}
}
]
and the URL was basically just the dashboard url. You could have the options in it, as well, if you wanted to preserver some of the tokens and only reset a few (like adding 
<dashboard_title>?form.time_token.earliest=%40d&form.time_token.latest=now

to keep a specific earliest/latest that may have been updated in the dashboard.)

Hope this helps - it isn't perfect but it works. 

Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...