<?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: How to populate a dropdown based on selection from another input panel in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406645#M41935</link>
    <description>&lt;P&gt;@moizmmz your question is not quite clear. Do you have two dropdowns or two panels? Or do you have a combination of both?&lt;/P&gt;

&lt;P&gt;What do you mean by &lt;CODE&gt;input panel&lt;/CODE&gt; in your question? Is your use case the following instead of what you have described in the question?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;How to populate a dropdown based on selection from another input dropdown?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If so, please refer to &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Example App&lt;/A&gt; from Splunkbase which has &lt;CODE&gt;Cascading Form Input&lt;/CODE&gt;  and several other useful examples for you to pick up on creation of Splunk Dashboards.&lt;/P&gt;

&lt;P&gt;Also, please try the following SimpleXML code which generates the two dropdowns as per above use case and confirm:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dropdown Cascading&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="tokDD1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Dropdown 1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="1"&amp;gt;1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="2"&amp;gt;2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="3"&amp;gt;3&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="4"&amp;gt;4&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="1"&amp;gt;
          &amp;lt;set token="form.tokDD2"&amp;gt;W&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="2"&amp;gt;
          &amp;lt;set token="form.tokDD2"&amp;gt;X&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="3"&amp;gt;
          &amp;lt;set token="form.tokDD2"&amp;gt;Y&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="4"&amp;gt;
          &amp;lt;set token="form.tokDD2"&amp;gt;Z&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="tokDD2"&amp;gt;
      &amp;lt;label&amp;gt;Dropdown 2&amp;lt;/label&amp;gt;
      &amp;lt;choice value="W"&amp;gt;W&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="X"&amp;gt;X&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Y"&amp;gt;Y&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Z"&amp;gt;Z&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 06 Jun 2019 18:07:40 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-06-06T18:07:40Z</dc:date>
    <item>
      <title>How to populate a dropdown based on selection from another input panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406643#M41933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I would like to build a dashboard where I have two input dropdowns:&lt;BR /&gt;
Panel A has 4 values (static inputs):&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;/P&gt;

&lt;P&gt;Panel B has 4 values that are selected based on the selection of Panel A:&lt;BR /&gt;
If 1 is selected in Panel A --&amp;gt; W&lt;BR /&gt;
If 2 is selected in Panel A --&amp;gt; X&lt;BR /&gt;
If 3 is selected in Panel A --&amp;gt; Y&lt;BR /&gt;
If 4 is selected in Panel A --&amp;gt; Z&lt;/P&gt;

&lt;P&gt;Splunk version: 6.6.2&lt;/P&gt;

&lt;P&gt;Please help. &lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 16:41:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406643#M41933</guid>
      <dc:creator>moizmmz</dc:creator>
      <dc:date>2019-06-06T16:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a dropdown based on selection from another input panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406644#M41934</link>
      <description>&lt;P&gt;The second dropdown also has static values. Both dropdowns are absolutely needed&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 16:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406644#M41934</guid>
      <dc:creator>moizmmz</dc:creator>
      <dc:date>2019-06-06T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a dropdown based on selection from another input panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406645#M41935</link>
      <description>&lt;P&gt;@moizmmz your question is not quite clear. Do you have two dropdowns or two panels? Or do you have a combination of both?&lt;/P&gt;

&lt;P&gt;What do you mean by &lt;CODE&gt;input panel&lt;/CODE&gt; in your question? Is your use case the following instead of what you have described in the question?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;How to populate a dropdown based on selection from another input dropdown?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If so, please refer to &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Example App&lt;/A&gt; from Splunkbase which has &lt;CODE&gt;Cascading Form Input&lt;/CODE&gt;  and several other useful examples for you to pick up on creation of Splunk Dashboards.&lt;/P&gt;

&lt;P&gt;Also, please try the following SimpleXML code which generates the two dropdowns as per above use case and confirm:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dropdown Cascading&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="tokDD1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Dropdown 1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="1"&amp;gt;1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="2"&amp;gt;2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="3"&amp;gt;3&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="4"&amp;gt;4&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="1"&amp;gt;
          &amp;lt;set token="form.tokDD2"&amp;gt;W&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="2"&amp;gt;
          &amp;lt;set token="form.tokDD2"&amp;gt;X&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="3"&amp;gt;
          &amp;lt;set token="form.tokDD2"&amp;gt;Y&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="4"&amp;gt;
          &amp;lt;set token="form.tokDD2"&amp;gt;Z&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="tokDD2"&amp;gt;
      &amp;lt;label&amp;gt;Dropdown 2&amp;lt;/label&amp;gt;
      &amp;lt;choice value="W"&amp;gt;W&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="X"&amp;gt;X&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Y"&amp;gt;Y&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Z"&amp;gt;Z&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jun 2019 18:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406645#M41935</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-06-06T18:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a dropdown based on selection from another input panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406646#M41936</link>
      <description>&lt;P&gt;Two dropdowns. This works! Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 18:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406646#M41936</guid>
      <dc:creator>moizmmz</dc:creator>
      <dc:date>2019-06-06T18:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a dropdown based on selection from another input panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406647#M41937</link>
      <description>&lt;P&gt;could you post this as an answer?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 18:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406647#M41937</guid>
      <dc:creator>moizmmz</dc:creator>
      <dc:date>2019-06-06T18:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a dropdown based on selection from another input panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406648#M41938</link>
      <description>&lt;P&gt;Here you go!!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 20:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-dropdown-based-on-selection-from-another-input/m-p/406648#M41938</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-06-06T20:17:03Z</dc:date>
    </item>
  </channel>
</rss>

