<?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: Search a yes/no field with a single checkbox token in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390045#M25614</link>
    <description>&lt;P&gt;Splunk Version&lt;BR /&gt;
    6.5.2&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 19:40:08 GMT</pubDate>
    <dc:creator>altink</dc:creator>
    <dc:date>2018-09-25T19:40:08Z</dc:date>
    <item>
      <title>Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390033#M25602</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;I have a YES/NO field named "FIELD2"  which I want to search with a single checkbox token named "Checkbox1" ,  in the following way: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Checkbox1.checked = TRUE   
search:  index=db FIELD1= FIELD2="YES"

Checkbox2.checked = FALSE  
search:  index=db FIELD1= FIELD2="*"
or better
search:  index=db FIELD1=
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried with condition and match but no result.&lt;/P&gt;

&lt;P&gt;Can someone advise "from scratch"?&lt;/P&gt;

&lt;P&gt;best regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 19:29:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390033#M25602</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-24T19:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390034#M25603</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
 Try with these conditions for checkbox,&lt;/P&gt;

&lt;P&gt;YES&lt;BR /&gt;
NO&lt;/P&gt;

&lt;P&gt;Also in your search use FIELD=$checkbox_tokenname$&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 20:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390034#M25603</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-24T20:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390035#M25604</link>
      <description>&lt;P&gt;Thank you very much for the reply.&lt;/P&gt;

&lt;P&gt;to explain better,&lt;BR /&gt;
below is the code of my checkbox:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="checkbox" token="checkbox1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;toggle&amp;lt;/label&amp;gt;
      &amp;lt;choice value="YES"&amp;gt;On&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="$checkbox1$==&amp;amp;quot;YES&amp;amp;quot;"&amp;gt;
          &amp;lt;set token="token2"&amp;gt;"YES"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="token2"&amp;gt;"*"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the search is like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=.... FIELD2= $token2$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Initially when it opens, the search is made with FIELD2= "*".&lt;BR /&gt;
When I first check the checkbox - id does not search. Or better said - it is searching the same (all), thus no movement in the page.&lt;BR /&gt;
Checking and unchecking later will work - but in the opposite expected result. &lt;BR /&gt;
When Checked - all results YES/NO come out - I was expecting only YES.&lt;BR /&gt;
When unchecking - only the YES come out - I was expecting both.&lt;/P&gt;

&lt;P&gt;best regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 20:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390035#M25604</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-24T20:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390036#M25605</link>
      <description>&lt;P&gt;Instead of using condition tags, you can use below if it helps&lt;/P&gt;

&lt;P&gt;On&lt;/P&gt;

&lt;P&gt;and the token for checkbox i.e. checkbox1 can be used in search like&lt;BR /&gt;
 index=.... FIELD2= "$checkbox1$"&lt;/P&gt;

&lt;P&gt;Please check if it needs to be in quotes or not, see the value of checkbox token in URL when dashboard loads.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 06:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390036#M25605</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-25T06:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390037#M25606</link>
      <description>&lt;P&gt;I have tried that (using the same chekbox-es token), but it doesn't work.&lt;/P&gt;

&lt;P&gt;regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 09:36:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390037#M25606</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-25T09:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390038#M25607</link>
      <description>&lt;P&gt;I have done what I need with a Dropdown as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="field2"&amp;gt;
      &amp;lt;label&amp;gt;Effective User&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;prefix&amp;gt;"&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
      &amp;lt;choice value="YES"&amp;gt;On&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="*"&amp;gt;Off&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | search ......... CURR_USER=$field2$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I need is to to the same, but with a Checkbox, not a Dropdown&lt;/P&gt;

&lt;P&gt;best regards&lt;BR /&gt;
Altin &lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 11:45:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390038#M25607</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-25T11:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390039#M25608</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I was able to do with the checkbox, similar code to what you have done. See the code below, it works fine for me.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="checkbox" token="checkbox1" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
  &amp;lt;choice value="YES"&amp;gt;On&amp;lt;/choice&amp;gt;
  &amp;lt;change&amp;gt;
    &amp;lt;condition match="$checkbox1$==&amp;amp;quot;YES&amp;amp;quot;"&amp;gt;
      &amp;lt;eval token="token2"&amp;gt;"YES"&amp;lt;/eval&amp;gt;
      &amp;lt;!--&amp;lt;unset token="checkbox1"&amp;gt;&amp;lt;/unset&amp;gt;--&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition&amp;gt;
      &amp;lt;eval token="token2"&amp;gt;"*"&amp;lt;/eval&amp;gt;
    &amp;lt;/condition&amp;gt;
  &amp;lt;/change&amp;gt;
  &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
  &amp;lt;default&amp;gt;YES&amp;lt;/default&amp;gt;
  &amp;lt;initialValue&amp;gt;YES&amp;lt;/initialValue&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Sep 2018 16:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390039#M25608</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-25T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390040#M25609</link>
      <description>&lt;P&gt;It works in the opposite, not the way I am looking for.&lt;BR /&gt;
Checked      -  shows All&lt;BR /&gt;
Unchecked - shows only YES&lt;/P&gt;

&lt;P&gt;best regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 18:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390040#M25609</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-25T18:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390041#M25610</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
This is happening only when dashboard is initially loaded, once you click on the checkbox the token sets appropriately.&lt;BR /&gt;
I removed the default and initiaValue options for my checkbox, and now on refreshing the dashboard the initial value of checkbox is unchecked and token value is *, on checking the box the token value is changing to Yes and again on unchecking to * which is as expected.&lt;BR /&gt;
It works perfect for me.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Vijeta&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 18:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390041#M25610</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-25T18:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390042#M25611</link>
      <description>&lt;P&gt;thank you very much for following this.&lt;/P&gt;

&lt;P&gt;but I have the same result (opposite behavior), even after removing lines as suggested&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="checkbox" token="checkbox1" searchWhenChanged="true"&amp;gt;
   &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
   &amp;lt;choice value="YES"&amp;gt;On&amp;lt;/choice&amp;gt;
   &amp;lt;change&amp;gt;
     &amp;lt;condition match="$checkbox1$==&amp;amp;quot;YES&amp;amp;quot;"&amp;gt;
       &amp;lt;eval token="token2"&amp;gt;"YES"&amp;lt;/eval&amp;gt;
       &amp;lt;!--&amp;lt;unset token="checkbox1"&amp;gt;&amp;lt;/unset&amp;gt;--&amp;gt;
     &amp;lt;/condition&amp;gt;
     &amp;lt;condition&amp;gt;
       &amp;lt;eval token="token2"&amp;gt;"*"&amp;lt;/eval&amp;gt;
     &amp;lt;/condition&amp;gt;
   &amp;lt;/change&amp;gt;
   &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
 &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;best regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 18:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390042#M25611</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-25T18:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390043#M25612</link>
      <description>&lt;P&gt;How are you checking the value of token2? It would be good if you can diaplay token2 value on the panel and verify the behavior of tokens.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 18:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390043#M25612</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-25T18:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390044#M25613</link>
      <description>&lt;P&gt;I open the search loop button and see the whole search in a new Search form. there I can see how the token2 comes, and also from the result itself&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390044#M25613</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-25T19:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390045#M25614</link>
      <description>&lt;P&gt;Splunk Version&lt;BR /&gt;
    6.5.2&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390045#M25614</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-25T19:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390046#M25615</link>
      <description>&lt;P&gt;I am not sure why its not working, you can try to unset the values of token in finalization event of search.&lt;BR /&gt;
I am using this to view the values of token-&lt;/P&gt;

&lt;P&gt;test_db1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="checkbox" token="checkbox1" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;

  &amp;lt;choice value="YES"&amp;gt;On&amp;lt;/choice&amp;gt;
  &amp;lt;change&amp;gt;
    &amp;lt;condition match="$checkbox1$==&amp;amp;quot;YES&amp;amp;quot;"&amp;gt;
      &amp;lt;eval token="token2"&amp;gt;"YES"&amp;lt;/eval&amp;gt;
      &amp;lt;!--&amp;lt;unset token="checkbox1"&amp;gt;&amp;lt;/unset&amp;gt;--&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition&amp;gt;
      &amp;lt;eval token="token2"&amp;gt;"*"&amp;lt;/eval&amp;gt;
    &amp;lt;/condition&amp;gt;
  &amp;lt;/change&amp;gt;
  &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;



&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;"$token2$"&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;|makeresult|eval a=1|table a&amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390046#M25615</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-25T19:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390047#M25616</link>
      <description>&lt;P&gt;I pasted the checkbox as from above, it still works in the opposite.&lt;/P&gt;

&lt;P&gt;regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 20:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390047#M25616</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-25T20:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390048#M25617</link>
      <description>&lt;P&gt;It should not happen that way, did you try clearing the browser cache ?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 20:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390048#M25617</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-25T20:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390049#M25618</link>
      <description>&lt;P&gt;I tried with another browser, still the same result - opposite of what should be.&lt;/P&gt;

&lt;P&gt;regards&lt;BR /&gt;
Altin &lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 21:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390049#M25618</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-25T21:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390050#M25619</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Have you tried using radiobutton, per you requirement I think the radiobutton is well suited for the job.&lt;BR /&gt;
By default the radiobutton will be off, and FIELD2=* will work. When you click the on button, FIELD="YES" will be there. Take a look at the code below - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="radio" token="checkbox1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;toggle&amp;lt;/label&amp;gt;
      &amp;lt;choice value="YES"&amp;gt;On&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="*"&amp;gt;Off&amp;lt;/choice&amp;gt;          
      &amp;lt;prefix&amp;gt;FIELD2="&amp;lt;/prefix&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The query will be like &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=your_index $checkbox1$ &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Here's a screenshot for you reference -&lt;BR /&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/5823i0CBF5142105AC4DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&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/5824iD2036B39404F28F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
Let me know if this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390050#M25619</guid>
      <dc:creator>Dawson014</dc:creator>
      <dc:date>2018-09-26T15:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390051#M25620</link>
      <description>&lt;P&gt;Thank you very much @Dawson014,&lt;BR /&gt;
but this question was raised for a single Checkbox  solution only,&lt;BR /&gt;
which by sure is no rocket science, but it seems to be painful here in Splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 18:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390051#M25620</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2018-09-26T18:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Search a yes/no field with a single checkbox token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390052#M25621</link>
      <description>&lt;P&gt;Hi Altin,&lt;/P&gt;

&lt;P&gt;Please try out the solution below -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;splunk.answers tryouts&amp;lt;/label&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;set token="search_token"&amp;gt;FIELD2="*"&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="checkbox" searchWhenChanged="true" token="checkbox1"&amp;gt;
      &amp;lt;label&amp;gt;toggle&amp;lt;/label&amp;gt;
      &amp;lt;choice value="YES"&amp;gt;On&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="$checkbox1$==&amp;amp;quot;YES&amp;amp;quot;"&amp;gt;
          &amp;lt;set token="search_token"&amp;gt;FIELD2="*"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="search_token"&amp;gt;FIELD2="YES"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&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&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=db $search_token$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-1m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&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;This is working as intended for me.&lt;BR /&gt;
Just substitute the search query with yours. Let me know if this does not work. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 09:46:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-a-yes-no-field-with-a-single-checkbox-token/m-p/390052#M25621</guid>
      <dc:creator>Dawson014</dc:creator>
      <dc:date>2018-09-27T09:46:01Z</dc:date>
    </item>
  </channel>
</rss>

