<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: In an XML dashboard, how do I hide filters on submit? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411659#M27030</link>
    <description>&lt;P&gt;@azulgrana while this will work, the &lt;CODE&gt;Hide Filters&lt;/CODE&gt; link becomes useless. So it can also be hidden in the above JS.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$('a.hide-global-filters').attr('style','visibility:hidden');
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 21 Dec 2019 14:57:17 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-12-21T14:57:17Z</dc:date>
    <item>
      <title>In an XML dashboard, how do I hide filters on submit?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411656#M27027</link>
      <description>&lt;P&gt;I have an XML dashboard. I want to hide the filters when the submit button is clicked and just show the results table. What javascript do I have to write to achieve this?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 20:29:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411656#M27027</guid>
      <dc:creator>matstap</dc:creator>
      <dc:date>2018-10-08T20:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: In an XML dashboard, how do I hide filters on submit?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411657#M27028</link>
      <description>&lt;P&gt;You can refer below link and set the tokens in your submit event-&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/615025/get-a-token-when-clicking-on-hide-filters-on-a-das.html"&gt;https://answers.splunk.com/answers/615025/get-a-token-when-clicking-on-hide-filters-on-a-das.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 20:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411657#M27028</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-08T20:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: In an XML dashboard, how do I hide filters on submit?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411658#M27029</link>
      <description>&lt;P&gt;Create a new JS file under your APP static folder with the following code &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
         "splunkjs/mvc/simplexml/ready!"
     ], function() {
         $('#submit .btn').attr('data-action','hide-filters');
         $('#submit .btn').attr('href','#');
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then add the file to your XML code &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form hideChrome="True" script="hide_filters_on_submit.js"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if this works!&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 17:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411658#M27029</guid>
      <dc:creator>azulgrana</dc:creator>
      <dc:date>2019-12-20T17:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: In an XML dashboard, how do I hide filters on submit?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411659#M27030</link>
      <description>&lt;P&gt;@azulgrana while this will work, the &lt;CODE&gt;Hide Filters&lt;/CODE&gt; link becomes useless. So it can also be hidden in the above JS.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$('a.hide-global-filters').attr('style','visibility:hidden');
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Dec 2019 14:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411659#M27030</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-12-21T14:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: In an XML dashboard, how do I hide filters on submit?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411660#M27031</link>
      <description>&lt;P&gt;Hi @niketnilay &lt;/P&gt;

&lt;P&gt;Thanks for double checking this new approach. I think the hide-on-submit is not meant to replace the "Show/Hide Filters" and would be convenient to still keep it in case you need to review the filter criteria or make changes to it.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 16:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411660#M27031</guid>
      <dc:creator>azulgrana</dc:creator>
      <dc:date>2019-12-21T16:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: In an XML dashboard, how do I hide filters on submit?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411661#M27032</link>
      <description>&lt;P&gt;Well I meant for the dashboards using the &lt;CODE&gt;hide_filters_on_submit.js&lt;/CODE&gt; JS file, the hide filters option becomes irrelevant because same functionality is performed by Submit button as per the question.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 18:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-an-XML-dashboard-how-do-I-hide-filters-on-submit/m-p/411661#M27032</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-12-21T18:19:30Z</dc:date>
    </item>
  </channel>
</rss>

