<?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: Append dropdown to text box in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Append-dropdown-to-text-box/m-p/467499#M30677</link>
    <description>&lt;P&gt;Hi @mwdbhyat,&lt;BR /&gt;
You could modify CSS and put an HTML box in the input section to use to display the tokens, but I cannot help to do this!&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 09:39:17 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-02-17T09:39:17Z</dc:date>
    <item>
      <title>Append dropdown to text box</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Append-dropdown-to-text-box/m-p/467496#M30674</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have a dashboard with 3 dropdown inputs and a text box. I am trying to get whatever i select from the 3 dropdown boxes to appear in the adjacent text box, essentially just appending the tokens to the whitespace and only running when they appear in that box and i hit "submit". The selections from the dropdown need to be in " ". I also want it to then clear previous selections if i go back and change one of the dropdowns again. &lt;/P&gt;

&lt;P&gt;Has anyone got any thoughts on how i could achieve this?&lt;/P&gt;

&lt;P&gt;Currently this almost works - i just need to figure out the append part properly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset submitButton="false"&amp;gt;
&amp;lt;input type="dropdown" token="mainSection"&amp;gt;
  &amp;lt;label&amp;gt;Main Section&amp;lt;/label&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;MainSection&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;MainSection&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| inputlookup bla.csv
| fillnull value="(empty)"
| fields MainSection
| dedup 1 MainSection&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;/input&amp;gt;
&amp;lt;input type="dropdown" token="subSection"&amp;gt;
  &amp;lt;label&amp;gt;SubSection&amp;lt;/label&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;SubSection&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;SubSection&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| inputlookup bla.csv
| fillnull value="(empty)"
| search MainSection="$mainSection$"
| fields SubSection
| dedup 1 SubSection&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;/input&amp;gt;
&amp;lt;input type="dropdown" token="dataLine"&amp;gt;
  &amp;lt;label&amp;gt;DatalineName&amp;lt;/label&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;DatalineName&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;Dataline&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| inputlookup bla.csv
| fillnull value="(empty)"
| search MainSection="$mainSection$"
| search SubSection="$subSection$"
| fields DatalineName Dataline
| dedup 1 DatalineName&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;change&amp;gt;
    &amp;lt;eval token="chosen_dls"&amp;gt;$chosen_dls$." ".$dataLine$&amp;lt;/eval&amp;gt;
  &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="text" token="chosen_dls"&amp;gt;
  &amp;lt;label&amp;gt;selected&amp;lt;/label&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 08:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Append-dropdown-to-text-box/m-p/467496#M30674</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2020-02-17T08:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Append dropdown to text box</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Append-dropdown-to-text-box/m-p/467497#M30675</link>
      <description>&lt;P&gt;Hi @mwdbhyat,&lt;BR /&gt;
When you speak of thext box, a Single Value coulkd be useful for you?&lt;BR /&gt;
If yes, see this example with two dropdowns and the choosed values displayed in a Single Value box, then you can use the tokens also for your searches.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Search Box&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="token1"&amp;gt;
      &amp;lt;label&amp;gt;token 1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="One"&amp;gt;One&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Two"&amp;gt;Two&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="token2"&amp;gt;
      &amp;lt;label&amp;gt;token 2&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Three"&amp;gt;Three&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Four"&amp;gt;Four&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval search_box="$token1$ $token2$" | table search_box&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&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>Mon, 17 Feb 2020 08:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Append-dropdown-to-text-box/m-p/467497#M30675</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-17T08:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Append dropdown to text box</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Append-dropdown-to-text-box/m-p/467498#M30676</link>
      <description>&lt;P&gt;Unfortunately it needs to be exactly as i described it above.. i suspect there may be a need for some JS to make this work the way I want it to!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 09:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Append-dropdown-to-text-box/m-p/467498#M30676</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2020-02-17T09:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Append dropdown to text box</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Append-dropdown-to-text-box/m-p/467499#M30677</link>
      <description>&lt;P&gt;Hi @mwdbhyat,&lt;BR /&gt;
You could modify CSS and put an HTML box in the input section to use to display the tokens, but I cannot help to do this!&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 09:39:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Append-dropdown-to-text-box/m-p/467499#M30677</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-17T09:39:17Z</dc:date>
    </item>
  </channel>
</rss>

