<?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 Unchecked Checkbox search not working in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418529#M27548</link>
    <description>&lt;P&gt;when the check box is checked i want to use only results for which a field exists. &lt;/P&gt;

&lt;P&gt;to that end i have the following settings in the UI:&lt;/P&gt;

&lt;P&gt;Token Name: &lt;CODE&gt;token1&lt;/CODE&gt;&lt;BR /&gt;
Token Value Prefix: &lt;CODE&gt;| search field=&lt;/CODE&gt;&lt;BR /&gt;
Static Options: &lt;CODE&gt;Name=IncludeField Value=*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;my search is &lt;CODE&gt;inputlookup mylookup.csv $token1$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;when the checkbox is checked, it works fine as i assume &lt;CODE&gt;| search field=*&lt;/CODE&gt; is included in the search&lt;/P&gt;

&lt;P&gt;when the checkbox is unchecked, the panel says "search is waiting for input"&lt;/P&gt;

&lt;P&gt;Am i wrong in assuming that an unchecked checkbox means the &lt;CODE&gt;token1&lt;/CODE&gt; is empty and the search is run as is? Why isn't this working for me?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 10:14:31 GMT</pubDate>
    <dc:creator>jfrieling_splun</dc:creator>
    <dc:date>2018-08-22T10:14:31Z</dc:date>
    <item>
      <title>Unchecked Checkbox search not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418529#M27548</link>
      <description>&lt;P&gt;when the check box is checked i want to use only results for which a field exists. &lt;/P&gt;

&lt;P&gt;to that end i have the following settings in the UI:&lt;/P&gt;

&lt;P&gt;Token Name: &lt;CODE&gt;token1&lt;/CODE&gt;&lt;BR /&gt;
Token Value Prefix: &lt;CODE&gt;| search field=&lt;/CODE&gt;&lt;BR /&gt;
Static Options: &lt;CODE&gt;Name=IncludeField Value=*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;my search is &lt;CODE&gt;inputlookup mylookup.csv $token1$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;when the checkbox is checked, it works fine as i assume &lt;CODE&gt;| search field=*&lt;/CODE&gt; is included in the search&lt;/P&gt;

&lt;P&gt;when the checkbox is unchecked, the panel says "search is waiting for input"&lt;/P&gt;

&lt;P&gt;Am i wrong in assuming that an unchecked checkbox means the &lt;CODE&gt;token1&lt;/CODE&gt; is empty and the search is run as is? Why isn't this working for me?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 10:14:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418529#M27548</guid>
      <dc:creator>jfrieling_splun</dc:creator>
      <dc:date>2018-08-22T10:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unchecked Checkbox search not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418530#M27549</link>
      <description>&lt;P&gt;When a checkbox is unchecked the associated token is undefined.  Searches will not run with undefined tokens.&lt;BR /&gt;
If you can assigned the unchecked box to "*" or " " then the search should work.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418530#M27549</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-08-22T11:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unchecked Checkbox search not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418531#M27550</link>
      <description>&lt;P&gt;@jfrieling [Splunk] ,&lt;/P&gt;

&lt;P&gt;I dont see anything wrong, in what your doing . &lt;BR /&gt;
That is the how check box works ..  If your not checking any option it will show message as "search is waiting for input". You can assign IncludeField as Default Value. So every time while dashboard loaded. It will load with the default value IncludeField .&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418531#M27550</guid>
      <dc:creator>Shan</dc:creator>
      <dc:date>2018-08-22T11:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unchecked Checkbox search not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418532#M27551</link>
      <description>&lt;P&gt;@jfrieling since you have single static value in the check box, you can use Check box &lt;CODE&gt;&amp;lt;change&amp;gt;&lt;/CODE&gt; event handler to set the token for filter. Following is a run anywhere example which uses change event handler instead of using Token Prefix and sets the token to empty string in case Check box is unchecked!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Check Box For Token&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="checkbox" token="token1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;IncludeField&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition label="IncludeField"&amp;gt;
          &amp;lt;set token="tokenFilter"&amp;gt;| search field= *&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="tokenFilter"&amp;gt; &amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;| inputlookup mylookup.csv $tokenFilter$&amp;lt;/title&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| inputlookup mylookup.csv $tokenFilter$&amp;lt;/query&amp;gt;
      &amp;lt;/search&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;PS: For demo of search string being executed I have printed the query in panel &lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418532#M27551</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-22T11:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unchecked Checkbox search not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418533#M27552</link>
      <description>&lt;P&gt;I just tried this and it does not work.  Does it really work for you @niketnilay?  I am on v6.5.3.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 20:46:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418533#M27552</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-09-06T20:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unchecked Checkbox search not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418534#M27553</link>
      <description>&lt;P&gt;Works in 7.0.3, thanks @niketnilay &lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 19:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unchecked-Checkbox-search-not-working/m-p/418534#M27553</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2019-02-28T19:13:05Z</dc:date>
    </item>
  </channel>
</rss>

