<?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 Hide and Show Input Dropdown Based Upon Another Input Drop Down in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331316#M21460</link>
    <description>&lt;P&gt;I have two different dropdowns and i want to hide and show second dropdown(category) based upon of first selectoin. Tried below way, but not working. If choice site is selected second dropdown (category) should be displayed else if choice container is selected second dropdown (category) should be in hidden. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="view"&amp;gt;
      &amp;lt;label&amp;gt;View&amp;lt;/label&amp;gt;
        &amp;lt;choice value="site"&amp;gt;Site&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="container"&amp;gt;Container&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;site&amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="$view$ == site"&amp;gt;
            &amp;lt;set token="show_category"&amp;gt;true&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition match="$view$ != site"&amp;gt;
            &amp;lt;unset token="show_category"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="category" depends="$show_category$" &amp;gt;
      &amp;lt;label&amp;gt;Category&amp;lt;/label&amp;gt;
      &amp;lt;choice value="data1"&amp;gt;Data1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="data2"&amp;gt;Data2&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Sep 2017 14:32:02 GMT</pubDate>
    <dc:creator>handsomehari</dc:creator>
    <dc:date>2017-09-12T14:32:02Z</dc:date>
    <item>
      <title>Hide and Show Input Dropdown Based Upon Another Input Drop Down</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331316#M21460</link>
      <description>&lt;P&gt;I have two different dropdowns and i want to hide and show second dropdown(category) based upon of first selectoin. Tried below way, but not working. If choice site is selected second dropdown (category) should be displayed else if choice container is selected second dropdown (category) should be in hidden. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="view"&amp;gt;
      &amp;lt;label&amp;gt;View&amp;lt;/label&amp;gt;
        &amp;lt;choice value="site"&amp;gt;Site&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="container"&amp;gt;Container&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;site&amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="$view$ == site"&amp;gt;
            &amp;lt;set token="show_category"&amp;gt;true&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition match="$view$ != site"&amp;gt;
            &amp;lt;unset token="show_category"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="category" depends="$show_category$" &amp;gt;
      &amp;lt;label&amp;gt;Category&amp;lt;/label&amp;gt;
      &amp;lt;choice value="data1"&amp;gt;Data1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="data2"&amp;gt;Data2&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2017 14:32:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331316#M21460</guid>
      <dc:creator>handsomehari</dc:creator>
      <dc:date>2017-09-12T14:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and Show Input Dropdown Based Upon Another Input Drop Down</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331317#M21461</link>
      <description>&lt;P&gt;@handsomehari, please try the following instead. It shows second dropdown only when the first dropdown's selected value is &lt;CODE&gt;site&lt;/CODE&gt;. For selected input's &lt;CODE&gt;change&lt;/CODE&gt; event you can use &lt;CODE&gt;value&lt;/CODE&gt; and &lt;CODE&gt;label&lt;/CODE&gt; to access them directly in &lt;CODE&gt;condition&lt;/CODE&gt; block.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset submitButton="false"&amp;gt;
     &amp;lt;input type="dropdown" token="view"&amp;gt;
       &amp;lt;label&amp;gt;View&amp;lt;/label&amp;gt;
         &amp;lt;choice value="site"&amp;gt;Site&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="container"&amp;gt;Container&amp;lt;/choice&amp;gt;
       &amp;lt;default&amp;gt;site&amp;lt;/default&amp;gt;
       &amp;lt;change&amp;gt;
         &amp;lt;condition value="site"&amp;gt;
             &amp;lt;set token="show_category"&amp;gt;true&amp;lt;/set&amp;gt;
           &amp;lt;/condition&amp;gt;
           &amp;lt;condition&amp;gt;
             &amp;lt;unset token="show_category"&amp;gt;&amp;lt;/unset&amp;gt;
           &amp;lt;/condition&amp;gt;
       &amp;lt;/change&amp;gt;
     &amp;lt;/input&amp;gt;
     &amp;lt;input type="dropdown" token="category" depends="$show_category$" &amp;gt;
       &amp;lt;label&amp;gt;Category&amp;lt;/label&amp;gt;
       &amp;lt;choice value="data1"&amp;gt;Data1&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="data2"&amp;gt;Data2&amp;lt;/choice&amp;gt;
     &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2017 18:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331317#M21461</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-12T18:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and Show Input Dropdown Based Upon Another Input Drop Down</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331318#M21462</link>
      <description>&lt;P&gt;Hey @handsomehair, if this worked for you please remember to "accept" niketnilay's answer! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; It'll award him karma points.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 23:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331318#M21462</guid>
      <dc:creator>lfedak_splunk</dc:creator>
      <dc:date>2017-09-12T23:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and Show Input Dropdown Based Upon Another Input Drop Down</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331319#M21463</link>
      <description>&lt;P&gt;Thanks... It worked...&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 04:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331319#M21463</guid>
      <dc:creator>handsomehari</dc:creator>
      <dc:date>2017-09-13T04:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and Show Input Dropdown Based Upon Another Input Drop Down</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331320#M21464</link>
      <description>&lt;P&gt;this code is working brilliantly..&lt;/P&gt;

&lt;P&gt;Please help me with this,&lt;BR /&gt;
 I have more values in 1st Dropdown ( e.g - except site and container) and depending on the values of 1st dropdown I have to open dropdown of that particular value - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;label&amp;gt;Select Category&amp;lt;/label&amp;gt;
  &amp;lt;choice value="capability"&amp;gt;CAPABILITY&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="lob"&amp;gt;LOB&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="service"&amp;gt;SERVICE&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="client"&amp;gt;CLIENT&amp;lt;/choice&amp;gt;
  &amp;lt;change&amp;gt;
  &amp;lt;condition value="capability"&amp;gt;
  &amp;lt;set token="show_capability"&amp;gt;true&amp;lt;/set&amp;gt;
  &amp;lt;/condition&amp;gt;
  &amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_capability"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;/condition&amp;gt;

  &amp;lt;condition value="lob"&amp;gt;
  &amp;lt;set token="show_lobName"&amp;gt;true&amp;lt;/set&amp;gt;
  &amp;lt;/condition&amp;gt;
  &amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_lobName"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;/condition&amp;gt;
  &amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my code... code works well with both the condition separately -   means if I comment value=lob section capability dropdown is coming, if I comment capability, lob dropdown is coming,&lt;BR /&gt;
 but together both option is not working, when I am selecting capability, capability dropdown is coming but while selecting lob , lob dropdown is not coming and also I need to hide other dropdown when selecting new value from 1st dropdown.&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 10:30:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hide-and-Show-Input-Dropdown-Based-Upon-Another-Input-Drop-Down/m-p/331320#M21464</guid>
      <dc:creator>sayanidasgupta</dc:creator>
      <dc:date>2018-06-12T10:30:32Z</dc:date>
    </item>
  </channel>
</rss>

