<?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: How can I hide/Unhide a dashboard panel based on the checkbox choosen? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481966#M31608</link>
    <description>&lt;P&gt;Could not paste XML here, so please see my other answer&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 17:02:13 GMT</pubDate>
    <dc:creator>jpolvino</dc:creator>
    <dc:date>2020-01-10T17:02:13Z</dc:date>
    <item>
      <title>How can I hide/Unhide a dashboard panel based on the checkbox choosen?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481959#M31601</link>
      <description>&lt;P&gt;I am able to add the checkbox as shown below:-&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8192i293A843969E45001/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;As show above I just want the Panel_1 displayed only when I choose the checkbox Show under Overview. &lt;/P&gt;

&lt;P&gt;Where as XML code is as follows&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;--------
-------
 &amp;lt;input type="checkbox" token="overview" searchWhenChanged="true"&amp;gt;
             &amp;lt;label&amp;gt;Overview&amp;lt;/label&amp;gt;
             &amp;lt;choice value="true"&amp;gt;Show&amp;lt;/choice&amp;gt;
             &amp;lt;change&amp;gt;
               &amp;lt;condition label="Show"&amp;gt;
                 &amp;lt;set token="overview"&amp;gt;true&amp;lt;/set&amp;gt;
               &amp;lt;/condition&amp;gt;
             &amp;lt;/change&amp;gt;
             &amp;lt;default&amp;gt;true&amp;lt;/default&amp;gt;
           &amp;lt;/input&amp;gt;

  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$overview$"&amp;gt;
      &amp;lt;title&amp;gt;Panel_1&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
------
-----
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above xml is not working as the Panel_1 is displaying anyway irrespective of the option I choose in the checkbox. &lt;/P&gt;

&lt;P&gt;Any help would be great. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 15:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481959#M31601</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-01-10T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide/Unhide a dashboard panel based on the checkbox choosen?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481960#M31602</link>
      <description>&lt;P&gt;This works in one of my dashboards.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
&amp;lt;input type="checkbox" token="foo"&amp;gt;
  &amp;lt;label&amp;gt;Overview&amp;lt;/label&amp;gt;
  &amp;lt;choice value="true"&amp;gt;Show&amp;lt;/choice&amp;gt;
  &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;
...
&amp;lt;row&amp;gt;
&amp;lt;panel depends="$foo$"&amp;gt;
  &amp;lt;title&amp;gt;Panel 1&amp;lt;/title&amp;gt;
  &amp;lt;table&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jan 2020 16:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481960#M31602</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-10T16:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide/Unhide a dashboard panel based on the checkbox choosen?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481961#M31603</link>
      <description>&lt;P&gt;Thanks for the response @richgalloway. For some reason It didn't worked on mine. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 16:16:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481961#M31603</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-01-10T16:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide/Unhide a dashboard panel based on the checkbox choosen?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481962#M31604</link>
      <description>&lt;P&gt;Try adding &lt;CODE&gt;searchWhenChanged="true"&lt;/CODE&gt; right after &lt;CODE&gt;token="foo"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 16:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481962#M31604</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2020-01-10T16:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide/Unhide a dashboard panel based on the checkbox choosen?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481963#M31605</link>
      <description>&lt;P&gt;Kind of like the @richgalloway solution, I do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset submitButton="false" autoRun="false"&amp;gt;
    &amp;lt;input type="checkbox" token="showDetails" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;choice value="TRUE"&amp;gt;Display Details&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$showDetails$"&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Slightly different look and feel. I use this a lot for hiding/showing a help panel to assist using the dashboard.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 16:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481963#M31605</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2020-01-10T16:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide/Unhide a dashboard panel based on the checkbox choosen?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481964#M31606</link>
      <description>&lt;P&gt;Thank you @jpolvino . Still no luck. Does it due to limition on my browser I'm on chrome and my splunk version is 6.6.6.1&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 16:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481964#M31606</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-01-10T16:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide/Unhide a dashboard panel based on the checkbox choosen?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481965#M31607</link>
      <description>&lt;P&gt;Please try this simple example dashboard (just paste source) as a starting point:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;pavanae&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;panel title&amp;lt;/title&amp;gt;
      &amp;lt;input type="checkbox" token="repeatHelp" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
        &amp;lt;choice value="TRUE"&amp;gt;Display help for this section&amp;lt;/choice&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$repeatHelp$"&amp;gt;
      &amp;lt;html&amp;gt;
    &amp;lt;p&amp;gt;
      &amp;lt;b&amp;gt;Help:&amp;lt;/b&amp;gt; This section is used to identify...
    &amp;lt;/p&amp;gt;
    &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;depends&lt;/CODE&gt; can be applied to a row or panel.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 17:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481965#M31607</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2020-01-10T17:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide/Unhide a dashboard panel based on the checkbox choosen?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481966#M31608</link>
      <description>&lt;P&gt;Could not paste XML here, so please see my other answer&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 17:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-hide-Unhide-a-dashboard-panel-based-on-the-checkbox/m-p/481966#M31608</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2020-01-10T17:02:13Z</dc:date>
    </item>
  </channel>
</rss>

