<?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 reset checkbox values? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-checkbox-values/m-p/150891#M9202</link>
    <description>&lt;P&gt;That's strange. Are you only using a search manager, or also a post process manager as well? I just tried, and in its simplest form unchecking a checkbox immediately triggers an update to the search that uses the token. How are you using your token in the search?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2015 06:40:11 GMT</pubDate>
    <dc:creator>jeffland</dc:creator>
    <dc:date>2015-04-20T06:40:11Z</dc:date>
    <item>
      <title>How to reset checkbox values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-checkbox-values/m-p/150888#M9199</link>
      <description>&lt;P&gt;I am using Splunk 6.2.1&lt;/P&gt;

&lt;P&gt;I have a checkbox inside a panel&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;panel&amp;gt;
          &amp;lt;input type="checkbox" token="cbstring" searchWhenChanged="true"&amp;gt;
            &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
            &amp;lt;choice value="max"&amp;gt;Max&amp;lt;/choice&amp;gt;
            &amp;lt;choice value="min"&amp;gt;Min&amp;lt;/choice&amp;gt;
          &amp;lt;/input&amp;gt;
    ...
       &amp;lt;/panel&amp;gt;    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem is that once a checkbox is selected, the searchstring gets populated.&lt;BR /&gt;
Unchecking does NOT reset the values.&lt;BR /&gt;
In other words, if i select a checkbox, search works correctly. But, when the same checkbox is un-checked, the token cbstring does not get re-populated - instead the old values persists.&lt;/P&gt;

&lt;P&gt;How to reset the token associated with the checkbox?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 05:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-checkbox-values/m-p/150888#M9199</guid>
      <dc:creator>vdevarayan</dc:creator>
      <dc:date>2015-04-20T05:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset checkbox values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-checkbox-values/m-p/150889#M9200</link>
      <description>&lt;P&gt;Hm. It looks like you want a radio button, not two checkboxes. Or are the two supposed to be selected at the same time?&lt;/P&gt;

&lt;P&gt;Otherwise, to start an action on uncheck of a checkbox, you can listen to &lt;CODE&gt;click&lt;/CODE&gt; on it and call your search based on the condition that &lt;CODE&gt;!$(this).is(':checked')&lt;/CODE&gt;. But I wonder how your search looks like if the user selects neither min nor max - if it uses count, you should add that as the third option (and, as I said, use radio buttons).&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 06:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-checkbox-values/m-p/150889#M9200</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-20T06:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset checkbox values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-checkbox-values/m-p/150890#M9201</link>
      <description>&lt;P&gt;I have many other options - and i want checkbox - meaning more than one option can be selected.&lt;BR /&gt;
I am having trouble with resetting the token - the old values persist.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 06:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-checkbox-values/m-p/150890#M9201</guid>
      <dc:creator>vdevarayan</dc:creator>
      <dc:date>2015-04-20T06:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset checkbox values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-checkbox-values/m-p/150891#M9202</link>
      <description>&lt;P&gt;That's strange. Are you only using a search manager, or also a post process manager as well? I just tried, and in its simplest form unchecking a checkbox immediately triggers an update to the search that uses the token. How are you using your token in the search?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 06:40:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-checkbox-values/m-p/150891#M9202</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-20T06:40:11Z</dc:date>
    </item>
  </channel>
</rss>

