<?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 to dynamically show/hide a dashboard panel based on drop-down selection? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/678930#M55609</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185306"&gt;@pdpsplunk100&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/140181"&gt;@sundareshr&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/188962"&gt;@ppablo&lt;/a&gt;&amp;nbsp;Is there any update for achieving the same in splunk&amp;nbsp;&lt;SPAN&gt;9.0.5.1 version?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 07:31:27 GMT</pubDate>
    <dc:creator>Splunk_321</dc:creator>
    <dc:date>2024-02-28T07:31:27Z</dc:date>
    <item>
      <title>How to dynamically show/hide a dashboard panel based on drop-down selection?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233262#M14445</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;

&lt;P&gt;I have a dashboard with a drop-down containing 3 choices. If choice 3 is selected, I want to show a panel. If choices 1 or 2 are selected, that panel should be hidden. I do see a few posts related to this, but they are not doing the trick for me. I see I have to use &lt;CODE&gt;,&lt;/CODE&gt;  . Dashboard is Simple XML. Splunk version is 6.4.1.2.  &lt;/P&gt;

&lt;P&gt;The weird thing is, it worked yesterday and I tested it multiple times. I don't remember changing anything, but it is not working today. I tried the "depends" on the  and  tags but it's not working.  &lt;/P&gt;

&lt;P&gt;xxx&lt;BR /&gt;
  xxx&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;input type="dropdown" token="type"&amp;gt;
    &amp;lt;label&amp;gt;type&amp;lt;/label&amp;gt;
    &amp;lt;choice value="a"&amp;gt;A&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="b"&amp;gt;B&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="c"&amp;gt;C&amp;lt;/choice&amp;gt;
    &amp;lt;default&amp;gt;a&amp;lt;/default&amp;gt;
    &amp;lt;change&amp;gt;
      &amp;lt;condition value="a"&amp;gt;
        &amp;lt;unset token="a-details"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;unset token="b-details"&amp;gt;&amp;lt;/unset&amp;gt;          
        &amp;lt;set token="c-details"&amp;gt;&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;  
      &amp;lt;condition value="b"&amp;gt;
        &amp;lt;unset token="a-details"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;unset token="c-details"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;set token="b-details"&amp;gt;&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition value="c"&amp;gt;
        &amp;lt;unset token="a-details"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;unset token="b-details"&amp;gt;&amp;lt;/unset&amp;gt;          
        &amp;lt;set token="c-details"&amp;gt;&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/change&amp;gt;
  &amp;lt;/input&amp;gt;


&amp;lt;panel depends="$c-details$"&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;xxxx&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$time_tok.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Aug 2016 23:37:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233262#M14445</guid>
      <dc:creator>pdpsplunk100</dc:creator>
      <dc:date>2016-08-18T23:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically show/hide a dashboard panel based on drop-down selection?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233263#M14446</link>
      <description>&lt;P&gt;Hi @pdpsplunk100&lt;/P&gt;

&lt;P&gt;I think some parts of your explanation didn't render properly, particularly the last sentence. Make sure you highlight any sample code (especially anything with angle brackets like XML) and click the Code Sample button in the text editing tools, or surround the code with backticks so it ends up looking like &lt;CODE&gt;&amp;lt;this&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 23:58:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233263#M14446</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2016-08-18T23:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically show/hide a dashboard panel based on drop-down selection?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233264#M14447</link>
      <description>&lt;P&gt;Thanks for your comments. Ok here is the code I have right now. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="type"&amp;gt;
 &amp;lt;label&amp;gt;type&amp;lt;/label&amp;gt;
 &amp;lt;choice value="a"&amp;gt;A&amp;lt;/choice&amp;gt;
 &amp;lt;choice value="b"&amp;gt;B&amp;lt;/choice&amp;gt;
 &amp;lt;choice value="c"&amp;gt;C&amp;lt;/choice&amp;gt;
 &amp;lt;default&amp;gt;a&amp;lt;/default&amp;gt;
 &amp;lt;change&amp;gt;
   &amp;lt;condition value="a"&amp;gt;
     &amp;lt;unset token="b-details"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;unset token="c-details"&amp;gt;&amp;lt;/unset&amp;gt;          
     &amp;lt;set token="a-details"&amp;gt;&amp;lt;/set&amp;gt;
   &amp;lt;/condition&amp;gt;  
   &amp;lt;condition value="b"&amp;gt;
     &amp;lt;unset token="a-details"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;unset token="c-details"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;set token="b-details"&amp;gt;&amp;lt;/set&amp;gt;
   &amp;lt;/condition&amp;gt;
   &amp;lt;condition value="c"&amp;gt;
     &amp;lt;unset token="a-details"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;unset token="b-details"&amp;gt;&amp;lt;/unset&amp;gt;          
     &amp;lt;set token="c-details"&amp;gt;&amp;lt;/set&amp;gt;
   &amp;lt;/condition&amp;gt;
 &amp;lt;/change&amp;gt;





 &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
 &amp;lt;search&amp;gt;
   &amp;lt;query&amp;gt;xxxx&amp;lt;/query&amp;gt;
   &amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;
   &amp;lt;latest&amp;gt;$time_tok.latest$&amp;lt;/latest&amp;gt;
 &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Aug 2016 00:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233264#M14447</guid>
      <dc:creator>pdpsplunk100</dc:creator>
      <dc:date>2016-08-19T00:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically show/hide a dashboard panel based on drop-down selection?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233265#M14448</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel depends="$c-details$"&amp;gt;
   &amp;lt;chart&amp;gt;
     &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
     &amp;lt;search&amp;gt;
       &amp;lt;query&amp;gt;xxxx&amp;lt;/query&amp;gt;
       &amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;
       &amp;lt;latest&amp;gt;$time_tok.latest$&amp;lt;/latest&amp;gt;
     &amp;lt;/search&amp;gt;
   &amp;lt;/chart&amp;gt;
 &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Aug 2016 00:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233265#M14448</guid>
      <dc:creator>pdpsplunk100</dc:creator>
      <dc:date>2016-08-19T00:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically show/hide a dashboard panel based on drop-down selection?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233266#M14449</link>
      <description>&lt;P&gt;Sorry for the multiple comments. The  tag did not appear and so had to comment again. &lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 00:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233266#M14449</guid>
      <dc:creator>pdpsplunk100</dc:creator>
      <dc:date>2016-08-19T00:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically show/hide a dashboard panel based on drop-down selection?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233267#M14450</link>
      <description>&lt;P&gt;You you &lt;CODE&gt;&amp;lt;set&amp;gt;&lt;/CODE&gt; options, add a value. For example &lt;CODE&gt;&amp;lt;set token="c-details"&amp;gt;true&amp;lt;/set&amp;gt;&lt;/CODE&gt;. You don't need to do that for &lt;CODE&gt;&amp;lt;unset&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 14:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233267#M14450</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-19T14:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically show/hide a dashboard panel based on drop-down selection?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233268#M14451</link>
      <description>&lt;P&gt;Yes that did the trick. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 17:47:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233268#M14451</guid>
      <dc:creator>pdpsplunk100</dc:creator>
      <dc:date>2016-08-19T17:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically show/hide a dashboard panel based on drop-down selection?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233269#M14452</link>
      <description>&lt;P&gt;Please accept the answer to close it out.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 17:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/233269#M14452</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-19T17:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically show/hide a dashboard panel based on drop-down selection?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/678930#M55609</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185306"&gt;@pdpsplunk100&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/140181"&gt;@sundareshr&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/188962"&gt;@ppablo&lt;/a&gt;&amp;nbsp;Is there any update for achieving the same in splunk&amp;nbsp;&lt;SPAN&gt;9.0.5.1 version?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:31:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-show-hide-a-dashboard-panel-based-on-drop/m-p/678930#M55609</guid>
      <dc:creator>Splunk_321</dc:creator>
      <dc:date>2024-02-28T07:31:27Z</dc:date>
    </item>
  </channel>
</rss>

