<?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 create multiple dependent dropdowns on a dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391089#M25648</link>
    <description>&lt;P&gt;I have a need to create 2 dropdowns on a dashboard. The first dropdown should show Dev, Test, Prod as options and the second dropdown should show the below options based on what is selected in the first dropdown.&lt;BR /&gt;
Dev -Dev1,Dev2,Dev3&lt;BR /&gt;
Test -Test1,Test2,Test3&lt;BR /&gt;
Prod -Prod1,Prod2,Prod3&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2018 02:57:43 GMT</pubDate>
    <dc:creator>ReachDataScient</dc:creator>
    <dc:date>2018-08-02T02:57:43Z</dc:date>
    <item>
      <title>How to create multiple dependent dropdowns on a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391089#M25648</link>
      <description>&lt;P&gt;I have a need to create 2 dropdowns on a dashboard. The first dropdown should show Dev, Test, Prod as options and the second dropdown should show the below options based on what is selected in the first dropdown.&lt;BR /&gt;
Dev -Dev1,Dev2,Dev3&lt;BR /&gt;
Test -Test1,Test2,Test3&lt;BR /&gt;
Prod -Prod1,Prod2,Prod3&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 02:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391089#M25648</guid>
      <dc:creator>ReachDataScient</dc:creator>
      <dc:date>2018-08-02T02:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple dependent dropdowns on a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391090#M25649</link>
      <description>&lt;P&gt;See this&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/527016/how-to-create-a-dependent-dropdown-and-multivalue.html"&gt;https://answers.splunk.com/answers/527016/how-to-create-a-dependent-dropdown-and-multivalue.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 03:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391090#M25649</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-02T03:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple dependent dropdowns on a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391091#M25650</link>
      <description>&lt;P&gt;Instead of creating a lookup, how can i code the values in the xml.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 04:13:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391091#M25650</guid>
      <dc:creator>ReachDataScient</dc:creator>
      <dc:date>2018-08-02T04:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple dependent dropdowns on a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391092#M25651</link>
      <description>&lt;P&gt;@ReachDataScientist, you should get &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples&lt;/A&gt; app which covers &lt;CODE&gt;Cascading Form Input&lt;/CODE&gt; example and many more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;You should ideally create a lookup file with mapping of Environments with respective Systems and use lookup as Dynamic Search for dependent dropdown. This will give you flexibility and option to extend your list of systems/environments. &lt;/P&gt;

&lt;P&gt;Following example uses run anywhere search as per your question but the same can be changed to lookup once you have it. Please try out and confirm!&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5504i85424968C3C1DD89/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dependent Drilldown&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="tokEnvironment" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Environment&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Dev"&amp;gt;Dev&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Test"&amp;gt;Test&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Prod"&amp;gt;Prod&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;unset token="tokSystem"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;unset token="form.tokSystem"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="tokSystem" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;System&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;$tokEnvironment$&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;$tokEnvironment$&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| makeresults
| fields - _time
| eval Dev="dev1,dev2,dev3",Test="test1,test2,test3",Prod="prod1,prod2,prod3" 
| fields $tokEnvironment$
| makemv $tokEnvironment$ delim=","
| mvexpand $tokEnvironment$&amp;lt;/query&amp;gt;
      &amp;lt;/search&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;Selected Environment: $tokEnvironment$ | Selected System: $tokSystem$&amp;lt;/title&amp;gt;
      &amp;lt;html&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, 02 Aug 2018 04:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391092#M25651</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-02T04:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple dependent dropdowns on a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391093#M25652</link>
      <description>&lt;P&gt;Hi @niketnilay &lt;/P&gt;

&lt;P&gt;I'm stucked at same kind of scenario, how we can pass input/value to system variables &lt;CODE&gt;(Dev1,Dev2,Dev3, Test1,Test2,Test3 ,Prod1,Prod2,Prod3)&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I have posted question, and it somehow related to it, could you please assist here?&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/780873/multivalve-drilldown-and-dropdown-is-not-working-i.html"&gt;https://answers.splunk.com/answers/780873/multivalve-drilldown-and-dropdown-is-not-working-i.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/780873/multivalve-drilldown-and-dropdown-is-not-working-i.html"&gt;link text&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 02:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-multiple-dependent-dropdowns-on-a-dashboard/m-p/391093#M25652</guid>
      <dc:creator>nagarajsf</dc:creator>
      <dc:date>2019-11-07T02:00:09Z</dc:date>
    </item>
  </channel>
</rss>

