<?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: Text Box not updating Dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476290#M31309</link>
    <description>&lt;P&gt;Hi folks. What I want to do is have a Text Box capture a value, and store it in token $client_action$. This works fine with a Default value, but when I actually edit the text in the box (changed?) &lt;/P&gt;

&lt;P&gt;@niketnilay  - O actually started with the example like the one you provided, and also validated against what @gcusello  has said, and it all looks correct from my side.&lt;/P&gt;

&lt;P&gt;What I have now (which still doesn't affect searches when the text changes, is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="text" token="timeout"&amp;gt;
      &amp;lt;label&amp;gt;Timeout Value&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;10000&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    **&amp;lt;input type="text" token="client_action" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Client Action&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;**
    &amp;lt;input type="checkbox" token="clientaction" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;choice value="set"&amp;gt;NOT IN&amp;lt;/choice&amp;gt;
      &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="set"&amp;gt;
          &amp;lt;set token="clientaction"&amp;gt;NOT Client_Action IN ( $client_action$ )&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="clientaction"&amp;gt;Client_Action IN ( $client_action$ )&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="time_period" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Time Period&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;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 08 Jan 2020 11:24:34 GMT</pubDate>
    <dc:creator>skirven</dc:creator>
    <dc:date>2020-01-08T11:24:34Z</dc:date>
    <item>
      <title>Text Box not updating Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476286#M31305</link>
      <description>&lt;P&gt;Hi! In Splunk 7.2.0, I'm trying to get a Dashboard that has a Text Box in it, and when you type a value in, I would expect it to update the Dashboard.&lt;/P&gt;

&lt;P&gt;I've tried multiple ways, even trying with the changed of the token, but nothing's ever refreshing the dashboard. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; My sample code is below. I've seen some references to having to possibly use JavaScript to do this? Are we needing to install another app to make this work? I know the tokens work, because they impact other areas of my dashboard.&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Stephen&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="text" token="client_action" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Client Action&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;change&amp;gt;
    &amp;lt;condition value="changed"&amp;gt;
      &amp;lt;set token="clientaction"&amp;gt;$client_action$&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;</description>
      <pubDate>Tue, 07 Jan 2020 19:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476286#M31305</guid>
      <dc:creator>skirven</dc:creator>
      <dc:date>2020-01-07T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box not updating Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476287#M31306</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Can you please explain your requirement in detail?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 03:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476287#M31306</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-01-08T03:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box not updating Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476288#M31307</link>
      <description>&lt;P&gt;Hi @skirven,&lt;BR /&gt;
I'm not sure to have completely understood your need,but I think that you should see in the Splunk Dashboard Examples App ( &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt; ) the "Text Form Input Element" Dashboard where is an example of this.&lt;BR /&gt;
Something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
    &amp;lt;label&amp;gt;Text Form Input Element&amp;lt;/label&amp;gt;
    &amp;lt;description&amp;gt;Set search terms by populating a form with textbox input.&amp;lt;/description&amp;gt;
    &amp;lt;fieldset autoRun="true" submitButton="false"&amp;gt;
        &amp;lt;input type="text" token="limit" searchWhenChanged="true"&amp;gt;
            &amp;lt;label&amp;gt;Enter an integer N:&amp;lt;/label&amp;gt;
            &amp;lt;default&amp;gt;5&amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
    &amp;lt;/fieldset&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;table&amp;gt;
            &amp;lt;title&amp;gt;Top $limit$ Sourcetypes based on N entered by user&amp;lt;/title&amp;gt;
            &amp;lt;search&amp;gt;
                &amp;lt;query&amp;gt;index=_internal | top limit=$limit$ sourcetype | eval percent = round(percent,2)&amp;lt;/query&amp;gt;
                &amp;lt;earliest&amp;gt;-24h&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="rowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;/table&amp;gt;
    &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 08:00:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476288#M31307</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-01-08T08:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box not updating Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476289#M31308</link>
      <description>&lt;P&gt;@skirven your code snippet is quite confusing.&lt;/P&gt;

&lt;P&gt;As per your code, only if you type &lt;CODE&gt;"changed"&lt;/CODE&gt; in the text box the value will be assigned to the token &lt;CODE&gt;$client_action$&lt;/CODE&gt;. However, even with that there is actually a delay of one change because you have used &lt;CODE&gt;$client_action$&lt;/CODE&gt; instead of &lt;CODE&gt;$value$&lt;/CODE&gt; to access the changed value.&lt;/P&gt;

&lt;P&gt;For the community to assist you better just provide what is the use case of text box i.e. once the value changes do you want to pass on the same changed value to the search or something else?&lt;/P&gt;

&lt;P&gt;If it is just the changed value then you do not even need the change event handler of text input. You can simply use the following code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="text" token="client_action" searchWhenChanged="true"&amp;gt;
   &amp;lt;label&amp;gt;Client Action&amp;lt;/label&amp;gt;
   &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
 &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where &lt;CODE&gt;$client_action$&lt;/CODE&gt; will have text box changed value that can be used in searches.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 08:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476289#M31308</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-01-08T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box not updating Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476290#M31309</link>
      <description>&lt;P&gt;Hi folks. What I want to do is have a Text Box capture a value, and store it in token $client_action$. This works fine with a Default value, but when I actually edit the text in the box (changed?) &lt;/P&gt;

&lt;P&gt;@niketnilay  - O actually started with the example like the one you provided, and also validated against what @gcusello  has said, and it all looks correct from my side.&lt;/P&gt;

&lt;P&gt;What I have now (which still doesn't affect searches when the text changes, is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="text" token="timeout"&amp;gt;
      &amp;lt;label&amp;gt;Timeout Value&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;10000&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    **&amp;lt;input type="text" token="client_action" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Client Action&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;**
    &amp;lt;input type="checkbox" token="clientaction" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;choice value="set"&amp;gt;NOT IN&amp;lt;/choice&amp;gt;
      &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="set"&amp;gt;
          &amp;lt;set token="clientaction"&amp;gt;NOT Client_Action IN ( $client_action$ )&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="clientaction"&amp;gt;Client_Action IN ( $client_action$ )&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="time_period" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Time Period&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;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jan 2020 11:24:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476290#M31309</guid>
      <dc:creator>skirven</dc:creator>
      <dc:date>2020-01-08T11:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box not updating Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476291#M31310</link>
      <description>&lt;P&gt;Hi @skirven,&lt;BR /&gt;
let me understand:&lt;BR /&gt;
you have a text box and you can search in the dashboard using the values you inserted in it.&lt;BR /&gt;
Your need is that, when you change the value in the text box, you want to re-run the search obtaining a different search results, is it correct?&lt;/P&gt;

&lt;P&gt;For my knowledge, when you change the content of a text box and you press Enter, the search is renewed, as you can test in the Dashboard Examples App, so probably I didn't understood what you need, can you share more details?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 11:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Text-Box-not-updating-Dashboard/m-p/476291#M31310</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-01-08T11:33:15Z</dc:date>
    </item>
  </channel>
</rss>

