<?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 How to make input dependent on other inputs in a form? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-input-dependent-on-other-inputs-in-a-form/m-p/87616#M18184</link>
    <description>&lt;P&gt;How can I make a combo box dependent on another combo box in a form?&lt;/P&gt;

&lt;P&gt;The contents of the second combo box is dependent on the selection in the first.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2013 16:41:47 GMT</pubDate>
    <dc:creator>oriches</dc:creator>
    <dc:date>2013-07-08T16:41:47Z</dc:date>
    <item>
      <title>How to make input dependent on other inputs in a form?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-input-dependent-on-other-inputs-in-a-form/m-p/87616#M18184</link>
      <description>&lt;P&gt;How can I make a combo box dependent on another combo box in a form?&lt;/P&gt;

&lt;P&gt;The contents of the second combo box is dependent on the selection in the first.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 16:41:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-input-dependent-on-other-inputs-in-a-form/m-p/87616#M18184</guid>
      <dc:creator>oriches</dc:creator>
      <dc:date>2013-07-08T16:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to make input dependent on other inputs in a form?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-input-dependent-on-other-inputs-in-a-form/m-p/87617#M18185</link>
      <description>&lt;P&gt;You'll have to use Advanced XML.&lt;/P&gt;

&lt;P&gt;Lots of info in answers already &lt;A href="http://splunk-base.splunk.com/answers/10605/building-a-view-with-3-dynamically-filling-drop-down-menus"&gt;such as this thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 16:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-input-dependent-on-other-inputs-in-a-form/m-p/87617#M18185</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-07-08T16:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to make input dependent on other inputs in a form?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-input-dependent-on-other-inputs-in-a-form/m-p/87618#M18186</link>
      <description>&lt;P&gt;You do not necessarily have to use Advanced XML for this at least in Splunk v6.0. Here's my example of how device_type selected with radio button is passed to the search populating dropdown. In two words: just add in the beginning of populating search your previous value like &lt;CODE&gt;device_type=$device_type$&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset autoRun="true" submitButton="false"&amp;gt;
&amp;lt;input type="time" searchWhenChanged="true" token="cohort"&amp;gt; &amp;lt;default&amp;gt;Last 30 days&amp;lt;/default&amp;gt; &amp;lt;/input&amp;gt;
&amp;lt;input type="time" searchWhenChanged="true" token="search"&amp;gt; &amp;lt;default&amp;gt;Last 30 days&amp;lt;/default&amp;gt; &amp;lt;/input&amp;gt;
&amp;lt;!-- Specify search when changed for the inputs --&amp;gt;
&amp;lt;input type="radio" token="device_type" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Select a device type:&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;

  &amp;lt;!-- Define the choices in code --&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="TV"&amp;gt;TV&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="BDP"&amp;gt;BDP&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="WEB"&amp;gt;WEB&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="TBL"&amp;gt;TBL&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="MOB"&amp;gt;MOB&amp;lt;/choice&amp;gt;
&amp;lt;/input&amp;gt;

&amp;lt;input type="dropdown" token="device_manufacturer" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Select a device manfacturer:&amp;lt;/label&amp;gt;
  &amp;lt;prefix&amp;gt;device_manufacturer="&amp;lt;/prefix&amp;gt;
  &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;

  &amp;lt;!-- Define the default value --&amp;gt;      
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;

  &amp;lt;!-- Define the choices with a populating search --&amp;gt;
  &amp;lt;populatingSearch fieldForValue="device_manufacturer" fieldForLabel="device_manufacturer" earliest="-48h" latest="now"&amp;gt;
    &amp;lt;![CDATA[source=sc_context_creation device_type="$device_type$" | eval device_manufacturer=lower(device_manufacturer) 
    | stats count by device_manufacturer | sort 0 - count]]&amp;gt;
  &amp;lt;/populatingSearch&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:59:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-input-dependent-on-other-inputs-in-a-form/m-p/87618#M18186</guid>
      <dc:creator>iKate</dc:creator>
      <dc:date>2020-09-28T14:59:55Z</dc:date>
    </item>
  </channel>
</rss>

