<?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: Unset token after timepicker/time is changed in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-timepicker-time-is-changed/m-p/424103#M27922</link>
    <description>&lt;P&gt;You can do this by adding a &lt;CODE&gt;&amp;lt;change&amp;gt;&lt;/CODE&gt; element to your time input. Here is an example of this where the token I'm unsetting is called "tok"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&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;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;unset token="var"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 May 2018 17:51:13 GMT</pubDate>
    <dc:creator>dflodstrom</dc:creator>
    <dc:date>2018-05-30T17:51:13Z</dc:date>
    <item>
      <title>Unset token after timepicker/time is changed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-timepicker-time-is-changed/m-p/424101#M27920</link>
      <description>&lt;P&gt;I would like advice on how to unset my dashboard token whenever a new search timeframe is selected using the timepicker. &lt;BR /&gt;
Thank you&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dashboard Example&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 May 2018 16:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-timepicker-time-is-changed/m-p/424101#M27920</guid>
      <dc:creator>rewritex</dc:creator>
      <dc:date>2018-05-30T16:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unset token after timepicker/time is changed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-timepicker-time-is-changed/m-p/424102#M27921</link>
      <description>&lt;P&gt;@rewritex, Do you want to unset the only the form tokens i.e. tokens related to other inputs in the dashboard, or all the other tokens as well? If it is for other tokens how are they being set? Would it be possible for you to add the Simple XML code for other tokens that need to be reset?&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 16:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-timepicker-time-is-changed/m-p/424102#M27921</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-30T16:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unset token after timepicker/time is changed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-timepicker-time-is-changed/m-p/424103#M27922</link>
      <description>&lt;P&gt;You can do this by adding a &lt;CODE&gt;&amp;lt;change&amp;gt;&lt;/CODE&gt; element to your time input. Here is an example of this where the token I'm unsetting is called "tok"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&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;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;unset token="var"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 May 2018 17:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-timepicker-time-is-changed/m-p/424103#M27922</guid>
      <dc:creator>dflodstrom</dc:creator>
      <dc:date>2018-05-30T17:51:13Z</dc:date>
    </item>
  </channel>
</rss>

