In dashboard, if you add input, you will see a text Hide Filters
.
I would like all the filters to be hidden in one dashboard by default.
The users need to click Show Filters
.
Searching around and did not find anything.
Try editing your nav links to include a querystring with hideFilters=True
http://dev.splunk.com/view/webframework-developapps/SP-CAAAEP9
You have to modify the source:
<form hideFilters="true">
...
This will work even with a default dashboard where you cannot modify the query string.
Marco
Try editing your nav links to include a querystring with hideFilters=True
http://dev.splunk.com/view/webframework-developapps/SP-CAAAEP9
I downvoted this post because the other answer on this page is more correct
Did not work.
True
also need to be quoted, so it should be some like this:
hidefilters='true'
hideFilters='true'
hideFilters='True'
Can I eliminate "Hide Filters" text from dashboard?
With CSS you can. Here is the CSS you need to add to a file in your app.
/* hide global input hiding button in 6.5+ */
a.hide-global-filters {
display: none !important;
}
Alternatively, you can put this in a hidden row in the dashboard.
<row depends="$hiddenCSS$">
<html>
<style>
a.hide-global-filters {
display: none !important;
}
</style>
</html>
</row>
Thanks, it worked !!!
Glad to hear it. You can upvote/like my comment to show that it helped.
Would it easier or cleaner to put it on top of the XML in the dashboard
or form
like the similar options listed here: http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/PanelreferenceforSimplifiedXML?
Thanks it worked there:
I am also looking for similar solution. What you have added and where?
Normal a dashboard starts like this:
<form>
Change it to:
<form hideFilters="true">
And you are done
Is it possible to remove hideFilters or showFilters link completely and show all the filters as default?
I am not able to remove them after upgrading Splunk to 6.5.2.
Dont know. If some works with one version and not with other, make a support case.
Thanks, I will.
My approach has been to put all of the filters in a panel at the top of the dashboard with no chart, table, etc. code in it (see below), then have a filter on the dashboard that does a Hide/Show on the panel. Unless there is at least one filter in the panel, Splunk will discard the panel. So, start with this, add some filters, then discard this filter.
<panel>
<title>XXXX User Input Filters</title>
<input type="multiselect" token="YYYY" searchWhenChanged="true">
<label>Select XXXX </label>
<choice value="*">All </choice>
<choice value="A">First</choice>
<choice value="B">Second</choice>
<choice value="C">Third</choice>
<default>A,C </default>
<valuePrefix>MyField="</valuePrefix>
<valueSuffix>"</valueSuffix>
<delimiter> OR </delimiter>
</input>
</panel>