<?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: hide panel after search is executed in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324512#M40236</link>
    <description>&lt;P&gt;@niketnilay I can't let it go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . &lt;BR /&gt;
-"I would request you to go through the Splunk Docs link I previously shared: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Event_handler_element"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Event_handler_element&lt;/A&gt;" . I will do this.&lt;/P&gt;

&lt;P&gt;How does Splunk know that 'field2' is the same as 'tokField2' ? &lt;BR /&gt;
The thing I still don't understand is that wether I use field2 or tokField2 I don't see any difference in the behaviour.&lt;BR /&gt;
This is also the case with 'searchWhenChanged' , it does not matter if the value is true or false, you always have to 'TAB'  before its executes a search.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2017 07:48:54 GMT</pubDate>
    <dc:creator>Mike6960</dc:creator>
    <dc:date>2017-12-12T07:48:54Z</dc:date>
    <item>
      <title>hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324495#M40219</link>
      <description>&lt;P&gt;Hi, I've managed to add a 'Input' (T Text) in y dashboard. I also added a 'submit' button. When I search for something a panel dynamically appears on my dashboard with (or without) search results. I have two questions&lt;BR /&gt;
1-I added the submit button so that the user 'sees' something happening when they enter a search word, without this button it seems not to do anything&lt;BR /&gt;
2- Initially the dynamic panel (with the use of 'depends')  is not visible (as expected), but after the first search has been exceuted the panel stays visible. Is there a way I can hide the panel when no other search has to been done?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324495#M40219</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-07T15:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324496#M40220</link>
      <description>&lt;P&gt;@Mike6960, would it be possible for you to add text box input and panel code? &lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324496#M40220</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-07T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324497#M40221</link>
      <description>&lt;P&gt;@niketnilay &lt;/P&gt;

&lt;P&gt;WlzServicesLog&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&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;/input&amp;gt;
&amp;lt;input type="text" token="field2" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Zoeken&amp;lt;/label&amp;gt;
  &amp;lt;prefix&amp;gt;field3&amp;lt;/prefix&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;test&amp;lt;/title&amp;gt;
  &amp;lt;event&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index= xp* &amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
    &amp;lt;option name="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
    &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
    &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
    &amp;lt;option name="rowNumbers"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
    &amp;lt;option name="table.sortDirection"&amp;gt;asc&amp;lt;/option&amp;gt;
    &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
  &amp;lt;/event&amp;gt;
&amp;lt;/panel&amp;gt;


&amp;lt;panel depends="$field2$"&amp;gt;&amp;amp;gt;&amp;lt;title&amp;gt;test variabel&amp;lt;/title&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=XPO $field2$ |sort -Timestamp|table tijd severity message priority machine&amp;lt;/query&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;/search&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
    &amp;lt;drilldown&amp;gt;
      &amp;lt;link target="_blank"&amp;gt;search?q=index=XPO $field2$* |sort -Timestamp|table tijd severity message priority machine&amp;amp;amp;earliest=-24h@h&amp;amp;amp;latest=now&amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Dec 2017 16:02:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324497#M40221</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-07T16:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324498#M40222</link>
      <description>&lt;P&gt;[UPDATED]&lt;/P&gt;

&lt;P&gt;Added screenshot to display desired output from run anywhere dashboard to show/hide HTML panel based on text box value change.&lt;BR /&gt;
&lt;IMG src="https://wiki.splunk.com/images/a/a9/ShowHide_HTML_Panel_on_Text_Box_value.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;@Mike6960, please try the following:&lt;/P&gt;

&lt;P&gt;I have set &lt;CODE&gt;searchWhenChanged="true"&lt;/CODE&gt; for both text box and time input. On the change event handler for text box I am setting the token &lt;CODE&gt;tokField2&lt;/CODE&gt; to the value in the text box if it is provided, else token is unset.&lt;/P&gt;

&lt;P&gt;I have used &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; panel for demo purpose. But you can use your own. The panel uses &lt;CODE&gt;tokField2&lt;/CODE&gt; as depends attribute set/unset during change event of the text box.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Hide Panel based on no value in Text box&amp;lt;/label&amp;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;/input&amp;gt;
    &amp;lt;input type="text" token="field2" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;field2&amp;lt;/label&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="isnull(value) OR value=&amp;amp;quot;&amp;amp;quot;"&amp;gt;
          &amp;lt;unset token="tokField2"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="tokField2"&amp;gt;$value$&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 depends="$tokField2$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div&amp;gt;$tokField2$&amp;lt;/div&amp;gt;
      &amp;lt;/html&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>Thu, 07 Dec 2017 17:38:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324498#M40222</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-07T17:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324499#M40223</link>
      <description>&lt;P&gt;@niketnilay, thanks but is a bit over my head. Where do I put this in the xml? Does this replace my own? I am not familiar with the HTML side of Splunk. What does the 'search when changed' actually do, I have tried true and false but don't notice the difference&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 09:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324499#M40223</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-11T09:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324500#M40224</link>
      <description>&lt;P&gt;tried to fit it in. put the 'submitButton' to True, otherwise there is no way to confirm the searchkeyword. Why is it that on one hand i use token 'field2' but you use 'tokField2' in the set/unset? I tried both but withe the same result actually&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 10:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324500#M40224</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-11T10:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324501#M40225</link>
      <description>&lt;P&gt;You can create a new dashboard with this code. Do not replace your own as this is just run anywhere dashboard for you to test and then replace required code in your own.&lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;searchWhenChanged=true&lt;/CODE&gt; option posts respective input's changed value without you having to press the Submit button/posting the entire dashboard. &lt;/P&gt;

&lt;P&gt;When &lt;CODE&gt;searchWhenCHanged=false&lt;/CODE&gt;, it implies the changed value of the input will get posted only when you click the Submit button. This should ideally be done when you do not want any section of your dashboard to run Search unless all input values are changed. You would also need to enable submit button first&lt;CODE&gt;&amp;lt;fieldset submitButton="true"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 10:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324501#M40225</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-11T10:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324502#M40226</link>
      <description>&lt;P&gt;I tried this, but when there is no submitbutton, the value isn't passed unless I use the 'TAB'button&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 11:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324502#M40226</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-11T11:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324503#M40227</link>
      <description>&lt;P&gt;I am using condition block within the text input to &lt;CODE&gt;set&lt;/CODE&gt; or &lt;CODE&gt;unset&lt;/CODE&gt; the token which will in turn &lt;CODE&gt;show&lt;/CODE&gt; or or &lt;CODE&gt;hide&lt;/CODE&gt; the depended panel.&lt;/P&gt;

&lt;P&gt;The problem with directly using &lt;CODE&gt;field2&lt;/CODE&gt; or &lt;CODE&gt;form.field2&lt;/CODE&gt; (check the URL in your Splunk Dashboard once you key in some text in the textbox) would have been that while on first time dashboard load while the field2 token is null (or unset), once some text is entered the form variable is set and posted in the URL. Dor example: &lt;CODE&gt;form.field2=foo&lt;/CODE&gt;. After making the textbox blank it sets the form token to empty string instead of null i.e.  &lt;CODE&gt;form.field2=&lt;/CODE&gt;. Hence, form token &lt;CODE&gt;field2&lt;/CODE&gt; can not be used for your scenario and I have used condition block which sets or unsets the desired token.&lt;/P&gt;

&lt;P&gt;Please try out and confirm.&lt;/P&gt;

&lt;P&gt;PS: In order to pick up Simple XML (and more ;)) you should definitely try out the following resources:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/Buildandeditforms"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/Buildandeditforms&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Event_handler_element"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Event_handler_element&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 11:10:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324503#M40227</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-11T11:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324504#M40228</link>
      <description>&lt;P&gt;strange...I don't see a difference in the URL or behaviour wether I use 'tokField2' or 'field2'&lt;BR /&gt;
In both cases I see at the end of the URL: 'form.field1.earliest=0&amp;amp;form.field1.latest=&amp;amp;form.field2= '&lt;BR /&gt;
And when I enter a text in the formvariable in both cases it shows:&lt;BR /&gt;
 'form.field1.earliest=0&amp;amp;form.field1.latest=&amp;amp;form.field2=searchword '&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 11:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324504#M40228</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-11T11:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324505#M40229</link>
      <description>&lt;P&gt;just to be complete, her is my XML at this moment:&lt;/P&gt;

&lt;P&gt;labelname&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&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;/input&amp;gt;
&amp;lt;input type="text" token="field2" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Zoeken&amp;lt;/label&amp;gt;
  &amp;lt;change&amp;gt;
    &amp;lt;condition match="isnull(value) OR value=&amp;amp;quot;&amp;amp;quot;"&amp;gt;
      &amp;lt;unset token="tokField2"&amp;gt;&amp;lt;/unset&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition&amp;gt;
      &amp;lt;set token="tokField2"&amp;gt;$value$&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
  &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;test&amp;lt;/title&amp;gt;
  &amp;lt;event&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index= xp*&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
    &amp;lt;option name="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
    &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
    &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
    &amp;lt;option name="rowNumbers"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
    &amp;lt;option name="table.sortDirection"&amp;gt;asc&amp;lt;/option&amp;gt;
    &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
  &amp;lt;/event&amp;gt;
&amp;lt;/panel&amp;gt;


&amp;lt;panel depends="$tokField2$"&amp;gt;&amp;amp;gt;&amp;lt;title&amp;gt;test variabel&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=XPO $field2$ |sort -Timestamp|table tijd severity message priority machine&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
    &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
    &amp;lt;drilldown&amp;gt;
      &amp;lt;link target="_blank"&amp;gt;search?q=index=XPO $field2$* |sort -Timestamp|table tijd severity message priority machine&amp;amp;amp;earliest=-24h@h&amp;amp;amp;latest=now&amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/table&amp;gt;

&amp;lt;/panel&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;Meldingen&amp;lt;/title&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index= xp* source="WlzServices.log" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;|sort -Timestamp|table tijd severity message priority machine&lt;BR /&gt;
          &lt;EARLIEST&gt;$field1.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;$field1.latest$&lt;/LATEST&gt;&lt;BR /&gt;
          &lt;SAMPLERATIO&gt;1&lt;/SAMPLERATIO&gt;&lt;BR /&gt;
        &lt;BR /&gt;
        100&lt;BR /&gt;
        none&lt;BR /&gt;
        cell&lt;BR /&gt;
        progressbar&lt;BR /&gt;
      &lt;BR /&gt;
    &lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 11:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324505#M40229</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-11T11:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324506#M40230</link>
      <description>&lt;P&gt;Check out &lt;CODE&gt;Null Result Setter&lt;/CODE&gt; exmple in Splunk Dashboard Examples App to understand. Only form variables are displayed in the URL. If you want to see the value of custom token, you can use yout custom HTML panel, run anywhere search or panel/table title to display the same using &lt;CODE&gt;$tokField2$&lt;/CODE&gt;. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;title&amp;gt;$tokField2$&amp;lt;/title&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When the token is set it will show $tokField2$ value set, if it is unset $tokField2$ will be displayed.&lt;/P&gt;

&lt;P&gt;Can you repost your complete dashboard with Code button? Seems like some of your code got escaped?&lt;/P&gt;

&lt;P&gt;PS: I have added screenshot for the expected output of the run anywhere dashboard example that I have added. Please let me know if you are seeing something else or if the expected behavior is something else.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 12:08:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324506#M40230</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-11T12:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324507#M40231</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;WlzServicesLog&amp;lt;/label&amp;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;/input&amp;gt;
    &amp;lt;input type="text" token="field2" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Zoeken&amp;lt;/label&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="isnull(value) OR value=&amp;amp;quot;&amp;amp;quot;"&amp;gt;
          &amp;lt;unset token="tokField2"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="tokField2"&amp;gt;$value$&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;Berichtenverwerking&amp;lt;/title&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index= xp* &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.sortDirection"&amp;gt;asc&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
      &amp;lt;/event&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$tokField2$"&amp;gt;&amp;amp;gt;&amp;lt;title&amp;gt;test variabel&amp;lt;/title&amp;gt;
          &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=XPO $field2$ |sort -Timestamp|table tijd severity message priority machine&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;search?q=index=XPO $field2$* |sort -Timestamp|table tijd severity message priority machine&amp;amp;amp;earliest=-24h@h&amp;amp;amp;latest=now&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;

    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Meldingen&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index= xp* source="WlzServices.log" 
|sort -Timestamp|table tijd severity message priority machine&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&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>Mon, 11 Dec 2017 12:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324507#M40231</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-11T12:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324508#M40232</link>
      <description>&lt;P&gt;Yes that is the idea of using this without Submit Button. Tabbing out triggers the input change event.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 13:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324508#M40232</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-11T13:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324509#M40233</link>
      <description>&lt;P&gt;In your previous answer you replied: 'Hence, form token field2 can not be used for your scenario' But why is the behavour the same with field2 and tokField2 ? &lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 13:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324509#M40233</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-11T13:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324510#M40234</link>
      <description>&lt;P&gt;@niketnilay, to prevent wasting your time. With the code I posted last it does what I need. I can search and the panel comes up after I 'TAB' . So lets leave it by that, I am afraid I am not gonna understand the difference between the field2 and tokfield2.&lt;BR /&gt;
The example 'Null result setter' I cannot find in the example app by the way.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 14:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324510#M40234</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-11T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324511#M40235</link>
      <description>&lt;P&gt;Sorry my bad it is &lt;CODE&gt;Null Search Swapper&lt;/CODE&gt; example.&lt;/P&gt;

&lt;P&gt;If the code is working for you please accept the answer and up-vote any comment that helped.&lt;/P&gt;

&lt;P&gt;I would request you to go through the Splunk Docs link I previously shared: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Event_handler_element"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Event_handler_element&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The text box input change event handler is required for setting the token as per our need. The text box input's default token&lt;CODE&gt;$value$&lt;/CODE&gt; is used to access &lt;CODE&gt;form.field2&lt;/CODE&gt; value and whether it is unset i.e. null or empty i.e. &lt;CODE&gt;""&lt;/CODE&gt;, it is used to unset the token &lt;CODE&gt;tokField2&lt;/CODE&gt;. This results in hiding the required panel which &lt;CODE&gt;depends&lt;/CODE&gt; or &lt;CODE&gt;tokField2&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;However, if you use form token i.e. &lt;CODE&gt;field2&lt;/CODE&gt; as &lt;CODE&gt;depends&lt;/CODE&gt; attribute it will be null until text box is selected and some value is entered. So if user clears out the complete text field2 will not be null it will be empty string i.e. &lt;CODE&gt;form2.field=&lt;/CODE&gt;. This implies that depends attribute will not work and panel will not be hidden.&lt;/P&gt;

&lt;P&gt;In simple Words the issue is due to empty value being different from no value.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 15:05:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324511#M40235</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-11T15:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324512#M40236</link>
      <description>&lt;P&gt;@niketnilay I can't let it go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . &lt;BR /&gt;
-"I would request you to go through the Splunk Docs link I previously shared: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Event_handler_element"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Event_handler_element&lt;/A&gt;" . I will do this.&lt;/P&gt;

&lt;P&gt;How does Splunk know that 'field2' is the same as 'tokField2' ? &lt;BR /&gt;
The thing I still don't understand is that wether I use field2 or tokField2 I don't see any difference in the behaviour.&lt;BR /&gt;
This is also the case with 'searchWhenChanged' , it does not matter if the value is true or false, you always have to 'TAB'  before its executes a search.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 07:48:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324512#M40236</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-12T07:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324513#M40237</link>
      <description>&lt;P&gt;&lt;CODE&gt;How does Splunk know that 'field2' is the same as 'tokField2' ?&lt;/CODE&gt;&lt;BR /&gt;
They are not&lt;/P&gt;

&lt;P&gt;If field2 is NULL i.e. &lt;CODE&gt;$field2$&lt;/CODE&gt; if you try to display the same, then tokField2 is NULL&lt;BR /&gt;
Even if field2 is EMPTY i.e. &lt;CODE&gt;field2=&lt;/CODE&gt; then also tokField2 is NULL.&lt;/P&gt;

&lt;P&gt;Which implies if you use field2 as depends for your panel to be hidden when no data in Text Box try the following 2 steps:&lt;BR /&gt;
1) Refresh or freshly load the dashboard and key in some text like &lt;CODE&gt;test&lt;/CODE&gt; and Tab out, you should see the HTML Panel&lt;BR /&gt;
2) Empty the text box by clearing &lt;CODE&gt;test&lt;/CODE&gt; and then tab out. Expected behavior is for the HTML Panel to be hidden since Text is not present but the same should be visible because &lt;CODE&gt;field2&lt;/CODE&gt; is EMPTY not NULL.&lt;/P&gt;

&lt;P&gt;Yes for text box input to be registered you always need to tab out or interact with element other than text box (like click on Submit button implies you have focused out of Text box in order to click the Submit button.). If you want Text input to be registered on each letter being typed in the text box, you would need to create your own JavaScript. This also means that your Search query will also ru every type a letter is typed in the text box. For example Search will run 4 times when you type &lt;CODE&gt;test&lt;/CODE&gt; in the text box, also 4 times when you try to delete 1 letter at a time. Do you really want this overhead just not to tab out of the text box?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 08:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324513#M40237</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-12T08:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: hide panel after search is executed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324514#M40238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;'Do you really want this overhead just not to tab out of the text box?'&lt;BR /&gt;
No, but I thought that that was the purpose of the 'searchwhenchanged' . Now I understand that if the value is 'false' that there will be no new search executed of I enter a searchword for the second time.&lt;/P&gt;

&lt;P&gt;Maybe I just keep misunderstanding you, but I have a panel (no HTML) that acts like the following:&lt;BR /&gt;
- Opening the dashboard-enter a value in textblock -TAB.  When there is a result , then the panel opens (with the results) . When there is no result (matching the searchvalue) the panel also opens, but the message 'No results found' is showing.&lt;/P&gt;

&lt;P&gt;When I clear the textblock and TAB, then the panel does not open. This behaviour is the same when I use tokField2 or Field2. That is the main issue I don't understand. Because you explained that there is a difference between the two fields&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 09:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/hide-panel-after-search-is-executed/m-p/324514#M40238</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-12-12T09:25:58Z</dc:date>
    </item>
  </channel>
</rss>

