<?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 How to use multiple tokens/token values in a checkbox form input to display different panels? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-multiple-tokens-token-values-in-a-checkbox-form-input/m-p/278049#M17633</link>
    <description>&lt;P&gt;I want to put a set of checkboxes on a dashboard, and display panels according to the checked checkboxes.&lt;BR /&gt;
I have 3 panels, with an attribute.&lt;BR /&gt;
I want to create one single checkbox input element, with three checkboxes, like:&lt;BR /&gt;
Display...&lt;BR /&gt;
[] panel1&lt;BR /&gt;
[] panel2&lt;BR /&gt;
[] panel3&lt;/P&gt;

&lt;P&gt;And display each panel respectively. My problem is that a checkbox input element can have only 1 token, but I want to have a separate token for every checkbox option.&lt;BR /&gt;
So basically, I want to set a separate token for every choice element in the checkbox panel.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2016 09:47:07 GMT</pubDate>
    <dc:creator>szabados</dc:creator>
    <dc:date>2016-02-10T09:47:07Z</dc:date>
    <item>
      <title>How to use multiple tokens/token values in a checkbox form input to display different panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-multiple-tokens-token-values-in-a-checkbox-form-input/m-p/278049#M17633</link>
      <description>&lt;P&gt;I want to put a set of checkboxes on a dashboard, and display panels according to the checked checkboxes.&lt;BR /&gt;
I have 3 panels, with an attribute.&lt;BR /&gt;
I want to create one single checkbox input element, with three checkboxes, like:&lt;BR /&gt;
Display...&lt;BR /&gt;
[] panel1&lt;BR /&gt;
[] panel2&lt;BR /&gt;
[] panel3&lt;/P&gt;

&lt;P&gt;And display each panel respectively. My problem is that a checkbox input element can have only 1 token, but I want to have a separate token for every checkbox option.&lt;BR /&gt;
So basically, I want to set a separate token for every choice element in the checkbox panel.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 09:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-multiple-tokens-token-values-in-a-checkbox-form-input/m-p/278049#M17633</guid>
      <dc:creator>szabados</dc:creator>
      <dc:date>2016-02-10T09:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple tokens/token values in a checkbox form input to display different panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-multiple-tokens-token-values-in-a-checkbox-form-input/m-p/278050#M17634</link>
      <description>&lt;P&gt;hi szabados,&lt;/P&gt;

&lt;P&gt;try this example and let me know &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
   &amp;lt;label&amp;gt;ExampleDynamicPanel&amp;lt;/label&amp;gt;
   &amp;lt;fieldset submitButton="false"&amp;gt;

     &amp;lt;input type="checkbox" token="token1" searchWhenChanged="true"&amp;gt;
        &amp;lt;!--&amp;lt;choice value="*"&amp;gt;ANY&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
         The final value will be surrounded by prefix and suffix --&amp;gt;
        &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
        &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
        &amp;lt;!-- Each value will be surrounded by the valuePrefix and valueSuffix --&amp;gt;
        &amp;lt;valuePrefix&amp;gt;temp="&amp;lt;/valuePrefix&amp;gt;
        &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
        &amp;lt;!-- All the values and their valuePrefix and valueSuffix will be concatenated together with the delimiter between them --&amp;gt;
        &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
     &amp;lt;populatingSearch fieldForLabel="temp" fieldForValue="temp"&amp;gt;|gentimes start=-1 | eval temp="Panel1" | table temp&amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;

      &amp;lt;input type="checkbox" token="token2" searchWhenChanged="true"&amp;gt;
        &amp;lt;!--&amp;lt;choice value="*"&amp;gt;ANY&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
         The final value will be surrounded by prefix and suffix --&amp;gt;
        &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
        &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
        &amp;lt;!-- Each value will be surrounded by the valuePrefix and valueSuffix --&amp;gt;
        &amp;lt;valuePrefix&amp;gt;temp="&amp;lt;/valuePrefix&amp;gt;
        &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
        &amp;lt;!-- All the values and their valuePrefix and valueSuffix will be concatenated together with the delimiter between them --&amp;gt;
        &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
     &amp;lt;populatingSearch fieldForLabel="temp" fieldForValue="temp"&amp;gt;|gentimes start=-1 | eval temp="Panel2" | table temp&amp;lt;/populatingSearch&amp;gt;
     &amp;lt;/input&amp;gt;

     &amp;lt;input type="checkbox" token="token3" searchWhenChanged="true"&amp;gt;
        &amp;lt;!--&amp;lt;choice value="*"&amp;gt;ANY&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
         The final value will be surrounded by prefix and suffix --&amp;gt;
        &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
        &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
        &amp;lt;!-- Each value will be surrounded by the valuePrefix and valueSuffix --&amp;gt;
        &amp;lt;valuePrefix&amp;gt;temp="&amp;lt;/valuePrefix&amp;gt;
        &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
        &amp;lt;!-- All the values and their valuePrefix and valueSuffix will be concatenated together with the delimiter between them --&amp;gt;
        &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
     &amp;lt;populatingSearch fieldForLabel="temp" fieldForValue="temp"&amp;gt;|gentimes start=-1 | eval temp="Panel3" | table temp&amp;lt;/populatingSearch&amp;gt;
     &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;

   &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
       &amp;lt;chart depends="$token1$"&amp;gt;
       &amp;lt;title&amp;gt;Details for $submitted:sourcetype|s$&amp;lt;/title&amp;gt;
      &amp;lt;searchString&amp;gt;index=_internal | timechart count&amp;lt;/searchString&amp;gt;
         &amp;lt;earliestTime&amp;gt;-15m&amp;lt;/earliestTime&amp;gt;
         &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
         &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
     &amp;lt;/chart&amp;gt;
       &amp;lt;chart depends="$token2$"&amp;gt;
       &amp;lt;title&amp;gt;Details for $submitted:sourcetype|s$&amp;lt;/title&amp;gt;
      &amp;lt;searchString&amp;gt;index=_internal | timechart count&amp;lt;/searchString&amp;gt;
         &amp;lt;earliestTime&amp;gt;-15m&amp;lt;/earliestTime&amp;gt;
         &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
         &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
     &amp;lt;/chart&amp;gt;
       &amp;lt;table depends="$token3$"&amp;gt;
         &amp;lt;searchString&amp;gt;index=_internal | timechart count&amp;lt;/searchString&amp;gt;
         &amp;lt;earliestTime&amp;gt;-15m&amp;lt;/earliestTime&amp;gt;
         &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&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;</description>
      <pubDate>Wed, 10 Feb 2016 11:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-multiple-tokens-token-values-in-a-checkbox-form-input/m-p/278050#M17634</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2016-02-10T11:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple tokens/token values in a checkbox form input to display different panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-multiple-tokens-token-values-in-a-checkbox-form-input/m-p/278051#M17635</link>
      <description>&lt;P&gt;Hi, I'm having the same problem myself (in Splunk 6.5). I just tried this but the result I get is 3 columns of checkboxes, each containing one checkbox, with the labels: token1, token2 and token3. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 13:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-multiple-tokens-token-values-in-a-checkbox-form-input/m-p/278051#M17635</guid>
      <dc:creator>zeinstein</dc:creator>
      <dc:date>2017-02-10T13:57:43Z</dc:date>
    </item>
  </channel>
</rss>

