<?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 link multiple panels of dashboard with checkbox in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441330#M29069</link>
    <description>&lt;P&gt;@sagar1992, one of easier option would be to use individual checkboxes with single option for each panel as multiselect option for Checkboxes (and even Multiselect does not work as expected which is a known issue.)&lt;/P&gt;

&lt;P&gt;Please try the following workaround with independent search that I had proposed for using Single Checkbox with multiple options. &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/681330/can-i-hideunhide-specific-text-boxes-using-a-singl.html"&gt;https://answers.splunk.com/answers/681330/can-i-hideunhide-specific-text-boxes-using-a-singl.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This example displays textbox/es depending on corresponding checkbox/es checked. Kindly adjust as per your use case.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 06:09:16 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-03-15T06:09:16Z</dc:date>
    <item>
      <title>How to link multiple panels of dashboard with checkbox</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441329#M29068</link>
      <description>&lt;P&gt;HI Team,&lt;/P&gt;

&lt;P&gt;I have multiple panels on my dashboard. Need to have checkbox provision so after clicking on the checkbox that particular panel should appear.&lt;/P&gt;

&lt;P&gt;Screenshot attached&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/6688i2CAA27C793699B2F/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;How to link checkbox with the panel.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Sagar&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 05:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441329#M29068</guid>
      <dc:creator>sagar1992</dc:creator>
      <dc:date>2019-03-15T05:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to link multiple panels of dashboard with checkbox</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441330#M29069</link>
      <description>&lt;P&gt;@sagar1992, one of easier option would be to use individual checkboxes with single option for each panel as multiselect option for Checkboxes (and even Multiselect does not work as expected which is a known issue.)&lt;/P&gt;

&lt;P&gt;Please try the following workaround with independent search that I had proposed for using Single Checkbox with multiple options. &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/681330/can-i-hideunhide-specific-text-boxes-using-a-singl.html"&gt;https://answers.splunk.com/answers/681330/can-i-hideunhide-specific-text-boxes-using-a-singl.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This example displays textbox/es depending on corresponding checkbox/es checked. Kindly adjust as per your use case.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 06:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441330#M29069</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-15T06:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to link multiple panels of dashboard with checkbox</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441331#M29070</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this, I had created a sample with javascript.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="panel.js"&amp;gt;
  &amp;lt;label&amp;gt;showhidepanel&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="checkbox" token="field1" id="panel"&amp;gt;
      &amp;lt;label&amp;gt;Panel list&amp;lt;/label&amp;gt;
      &amp;lt;choice value="panel1"&amp;gt;Show Panel1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="panel2"&amp;gt;Show Panel2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="panel3"&amp;gt;Show Panel3&amp;lt;/choice&amp;gt;
      &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="showpanel1" depends="$hide$"&amp;gt;&amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="showpanel2" depends="$hide$"&amp;gt;&amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="showpanel3" depends="$hide$"&amp;gt;&amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$showpanel1$"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Panel1&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" |stats count by host&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel depends="$showpanel2$"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Panel2&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" |stats count by host&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel depends="$showpanel3$"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Panel3&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" |stats count by host&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&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;Javascript:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/simplexml/ready!'
 ], function ($, mvc,) {
        var panellist= splunkjs.mvc.Components.getInstance("panel");
        var tokens = mvc.Components.get("default");
        if(panellist ==undefined){
            return;
        }
        panellist.on("change",function(){
            var selection = panellist.val();
            var len = selection.length;
            tokens.unset("form.showpanel1");
            tokens.unset("form.showpanel2");
            tokens.unset("form.showpanel3");
            for (var i = 0; i &amp;lt; len; i++) { 
                switch(selection[i]){
                    case  "panel1":
                        tokens.set("form.showpanel1", true);
                        break;
                    case  "panel2":
                        tokens.set("form.showpanel2", true);
                        break;
                    case  "panel3":
                        tokens.set("form.showpanel3", true);
                     break;
                    default:
                        tokens.unset("form.showpanel1");
                        tokens.unset("form.showpanel2");
                        tokens.unset("form.showpanel3");

                }

            }

        });
});
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Mar 2019 07:15:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441331#M29070</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-03-15T07:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to link multiple panels of dashboard with checkbox</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441332#M29071</link>
      <description>&lt;P&gt;Thanks Below article lead me to resolution.&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/506563/how-can-i-show-and-hide-panels-based-on-a-checkbox.html"&gt;https://answers.splunk.com/answers/506563/how-can-i-show-and-hide-panels-based-on-a-checkbox.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 16:40:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441332#M29071</guid>
      <dc:creator>sagar1992</dc:creator>
      <dc:date>2019-03-15T16:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to link multiple panels of dashboard with checkbox</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441333#M29072</link>
      <description>&lt;P&gt;Great. Yeah that is the original thread where we have documented the issue and provided a temporary Simple XML fix as workaround until original issue is fixed by Splunk &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 16:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441333#M29072</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-15T16:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to link multiple panels of dashboard with checkbox</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441334#M29073</link>
      <description>&lt;P&gt;Hello @niketnilay , is it possible to keep one checkbox with all option, as soon as i click on all, all panels should be visible.&lt;/P&gt;

&lt;P&gt;I tried "$panel1,$all" but this wont work, individual panels gets affected.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 17:10:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441334#M29073</guid>
      <dc:creator>sagar1992</dc:creator>
      <dc:date>2019-03-15T17:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to link multiple panels of dashboard with checkbox</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441335#M29074</link>
      <description>&lt;P&gt;Thanks for the reply. I dont really have access to place this js/css. Simple xml configuration worked. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 17:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-link-multiple-panels-of-dashboard-with-checkbox/m-p/441335#M29074</guid>
      <dc:creator>sagar1992</dc:creator>
      <dc:date>2019-03-15T17:11:44Z</dc:date>
    </item>
  </channel>
</rss>

