<?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: Is it possible to set an empty default value for text or drop-down inputs? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275999#M17476</link>
    <description>&lt;P&gt;this is a part of my dashboard&lt;/P&gt;

&lt;P&gt;Search log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" searchWhenChanged="false" token="Time"&amp;gt;
  &amp;lt;label&amp;gt;Periodo&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="dropdown" token="Utente" searchWhenChanged="false"&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;tag=GP2 | dedup MATRICOLA | table MATRICOLA | sort MATRICOLA&amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;MATRICOLA&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;MATRICOLA&amp;lt;/fieldForValue&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="Cliente" searchWhenChanged="false"&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;tag=GP2 | dedup ID_CLIENTE | table ID_CLIENTE | sort ID_CLIENTE&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$Time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$Time.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;prefix&amp;gt;ID_CLIENTE="&amp;lt;/prefix&amp;gt;
  &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;ID_CLIENTE&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;ID_CLIENTE&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="text" token="esclusione"&amp;gt;
  &amp;lt;label&amp;gt;Esclusione&amp;lt;/label&amp;gt;
  &amp;lt;prefix&amp;gt;NOT (&amp;lt;/prefix&amp;gt;
  &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
  &amp;lt;seed&amp;gt;Termini da escludere&amp;lt;/seed&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;table&amp;gt;
  &amp;lt;title&amp;gt;Log elaborati&amp;lt;/title&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;tag=GP2 MATRICOLA="$Utente$" $Cliente$ $esclusione$ | table TimeStamp Data_Acq Esito SS Operatore Postazione IDCliente TipoCliente Operazione&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$Time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$Time.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;option name="wrap"&amp;gt;false&amp;lt;/option&amp;gt;
  &amp;lt;option name="rowNumbers"&amp;gt;false&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;row&amp;lt;/option&amp;gt;
  &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Oct 2015 05:30:11 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2015-10-20T05:30:11Z</dc:date>
    <item>
      <title>Is it possible to set an empty default value for text or drop-down inputs?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275995#M17472</link>
      <description>&lt;P&gt;Hi at all,&lt;/P&gt;

&lt;P&gt;I have some text or drop-down inputs in a dashboard,&lt;BR /&gt;
Every one of them has &lt;CODE&gt;"*"&lt;/CODE&gt; as default value.&lt;BR /&gt;
In this way, I overload my search with unuseful filters&lt;BR /&gt;
I tried to insert a blank value as default, but my panels wait for the input.&lt;BR /&gt;
Is it possible to not use the default &lt;CODE&gt;myfield="*"?&lt;/CODE&gt;&lt;BR /&gt;
In other words, is it possible to set an empty default for text or drop-down inputs?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 14:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275995#M17472</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2015-10-19T14:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set an empty default value for text or drop-down inputs?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275996#M17473</link>
      <description>&lt;P&gt;Could you go to edit source for the dashboard and add it to the question in a script block?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 14:27:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275996#M17473</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2015-10-19T14:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set an empty default value for text or drop-down inputs?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275997#M17474</link>
      <description>&lt;P&gt;I assume you are using tokens for the value of a field like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset autoRun="true" submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="MyHostToken"&amp;gt;
    &amp;lt;label&amp;gt;MyHostToken&amp;lt;/label&amp;gt;
    &amp;lt;choice value="abc"&amp;gt;host abc&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="xyz"&amp;gt;host xyz&amp;lt;/choice&amp;gt;
    &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which means that your search looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;index=myIndex host=$MyHostToken$ ...&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But you could do the entire clause in your fields like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset autoRun="true" submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="MyHostClause"&amp;gt;
    &amp;lt;label&amp;gt;MyHostClause&amp;lt;/label&amp;gt;
    &amp;lt;choice value="host=abc"&amp;gt;host abc&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="host=xyz"&amp;gt;host xyz&amp;lt;/choice&amp;gt;
    &amp;lt;default&amp;gt;OR index=myIndex&amp;lt;/default&amp;gt;
  &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which means that your search looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;index=myIndex $MyHostClause$ ...&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And when it is run, it looks funny but runs the same:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myIndex OR index=myIndex ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You might be able to figure out how to set a null value for &lt;CODE&gt;myHostClause&lt;/CODE&gt; (try using a space, but I don't think it will work).  If you do, let  us know what worked (I am too busy to set this up to play around with it).&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 15:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275997#M17474</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-19T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set an empty default value for text or drop-down inputs?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275998#M17475</link>
      <description>&lt;P&gt;I tried with " " and "" but panels are waiting for an input.&lt;BR /&gt;
This is the problem: I'm not able to pass an empty value, I need to have these two possibilities:&lt;BR /&gt;
 - default: "my_search  | ...." instead of "my_search my_field="*" | ...."&lt;BR /&gt;
 - every value "my_search my_field="123" | ...."&lt;BR /&gt;
Thank you.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275998#M17475</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T07:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set an empty default value for text or drop-down inputs?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275999#M17476</link>
      <description>&lt;P&gt;this is a part of my dashboard&lt;/P&gt;

&lt;P&gt;Search log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" searchWhenChanged="false" token="Time"&amp;gt;
  &amp;lt;label&amp;gt;Periodo&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="dropdown" token="Utente" searchWhenChanged="false"&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;tag=GP2 | dedup MATRICOLA | table MATRICOLA | sort MATRICOLA&amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;MATRICOLA&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;MATRICOLA&amp;lt;/fieldForValue&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="Cliente" searchWhenChanged="false"&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;tag=GP2 | dedup ID_CLIENTE | table ID_CLIENTE | sort ID_CLIENTE&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$Time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$Time.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;prefix&amp;gt;ID_CLIENTE="&amp;lt;/prefix&amp;gt;
  &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;ID_CLIENTE&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;ID_CLIENTE&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="text" token="esclusione"&amp;gt;
  &amp;lt;label&amp;gt;Esclusione&amp;lt;/label&amp;gt;
  &amp;lt;prefix&amp;gt;NOT (&amp;lt;/prefix&amp;gt;
  &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
  &amp;lt;seed&amp;gt;Termini da escludere&amp;lt;/seed&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;table&amp;gt;
  &amp;lt;title&amp;gt;Log elaborati&amp;lt;/title&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;tag=GP2 MATRICOLA="$Utente$" $Cliente$ $esclusione$ | table TimeStamp Data_Acq Esito SS Operatore Postazione IDCliente TipoCliente Operazione&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$Time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$Time.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;option name="wrap"&amp;gt;false&amp;lt;/option&amp;gt;
  &amp;lt;option name="rowNumbers"&amp;gt;false&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;row&amp;lt;/option&amp;gt;
  &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Oct 2015 05:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/275999#M17476</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2015-10-20T05:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set an empty default value for text or drop-down inputs?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/276000#M17477</link>
      <description>&lt;P&gt;Did you notice that my original solution was to pass in a repeatable portion of the base search for &lt;CODE&gt;default&lt;/CODE&gt;?  This will make your search "look strange" but will not impact the efficiency or the results.  It &lt;EM&gt;will&lt;/EM&gt; work and solve your problem.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 13:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/276000#M17477</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-20T13:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set an empty default value for text or drop-down inputs?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/670925#M54908</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Giuseppe,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Noticed it's been over &lt;STRONG&gt;8 years&lt;/STRONG&gt; since you posted your question, but came across this post will searching on how to make a text box empty by default.,,,,same as you were looking to do.&lt;/P&gt;&lt;P&gt;Was working on a dashboard today, and thought what character is not ever in event data, and is not a character used by SPL for any reason.&amp;nbsp; The answer was the:&amp;nbsp; ~&lt;/P&gt;&lt;P&gt;This worked for me, like a charm, in a dashboard text box:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;initialValue&amp;gt;~&amp;lt;/initialValue&amp;gt;&lt;BR /&gt;&amp;lt;default&amp;gt;~&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/default&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp; &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dennis&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 03:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/670925#M54908</guid>
      <dc:creator>dwraesner</dc:creator>
      <dc:date>2023-12-06T03:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set an empty default value for text or drop-down inputs?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/671092#M54929</link>
      <description>&lt;P&gt;Typo correction:&lt;/P&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Giuseppe,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Noticed it's been over&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;8 years&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;since you posted your question, but came across this post &lt;FONT color="#0000FF"&gt;while&lt;/FONT&gt; searching on how to make a text box empty by default......same as you were looking to do.&lt;/P&gt;&lt;P&gt;Was working on a dashboard today, and thought what character is not ever in event data, and is not a character used by SPL for any reason.&amp;nbsp; The answer was the:&amp;nbsp; ~&lt;/P&gt;&lt;P&gt;This worked for me, like a charm, in a dashboard text box:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;initialValue&amp;gt;~&amp;lt;/initialValue&amp;gt;&lt;BR /&gt;&amp;lt;default&amp;gt;~&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/default&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennis_0-1701899394197.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28411i3C6FABDABF4CCE9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennis_0-1701899394197.png" alt="Dennis_0-1701899394197.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dennis&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 21:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-set-an-empty-default-value-for-text-or-drop/m-p/671092#M54929</guid>
      <dc:creator>Dennis</dc:creator>
      <dc:date>2023-12-06T21:51:26Z</dc:date>
    </item>
  </channel>
</rss>

