<?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 do you enable/disable (Hide/show) dropdown field based on options in radio buttons? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394334#M25781</link>
    <description>&lt;P&gt;Hi @vpurushottam&lt;/P&gt;

&lt;P&gt;Please modify this and try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;change&amp;gt;
     &amp;lt;condition value="1"&amp;gt;
       &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;unset token="activate_only_hours"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;/condition&amp;gt;
     &amp;lt;condition value="2"&amp;gt;
       &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;unset token="activate_only_days"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;/condition&amp;gt;
     &amp;lt;condition value="3"&amp;gt;
       &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
     &amp;lt;/condition&amp;gt;
   &amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;change&amp;gt;
     &amp;lt;condition label="Only Days"&amp;gt;
       &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;unset token="activate_only_hours"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;/condition&amp;gt;
     &amp;lt;condition label="Only Hours"&amp;gt;
       &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;unset token="activate_only_days"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;/condition&amp;gt;
     &amp;lt;condition label="Both (Default)"&amp;gt;
       &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
     &amp;lt;/condition&amp;gt;
   &amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Feb 2019 21:38:02 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-02-21T21:38:02Z</dc:date>
    <item>
      <title>How do you enable/disable (Hide/show) dropdown field based on options in radio buttons?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394332#M25779</link>
      <description>&lt;P&gt;Scenario:&lt;/P&gt;

&lt;P&gt;I need to extract records based on 3 different options.&lt;/P&gt;

&lt;P&gt;1) Based on only days of the weeks: user selects from which day till which day he wants to extract the records from (Sunday to Saturday)&lt;BR /&gt;
2) Based on only time: user selects from what time to what time he wants to extract the output from. (Eg: 9PM-7AM, 11AM-6PM etc)&lt;BR /&gt;
3) Based on both: user selects day as well as time.&lt;/P&gt;

&lt;P&gt;Goal:&lt;BR /&gt;
1) If a user selects the radio option "Only Days", he cannot modify the hour field, and the record is extracted for the days that match the user's choice.&lt;BR /&gt;
2) If a user selects the radio option "Only Hours", he cannot modify the Days field, and the record is extracted for the hour range that matches the user's choice.&lt;BR /&gt;
3) If a user selects "Both", he can modify the day and hour field and the result is displayed for the appropriate match.&lt;/P&gt;

&lt;P&gt;Given below is the query that I have used:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="radio" token="record_by"&amp;gt;
  &amp;lt;label&amp;gt;Extract records by:&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;3&amp;lt;/default&amp;gt;
  &amp;lt;choice value="1"&amp;gt;Only Days&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="2"&amp;gt;Only Hours&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="3"&amp;gt;Both (Default)&amp;lt;/choice&amp;gt;
  &amp;lt;change&amp;gt;
    &amp;lt;condition value="Only Days"&amp;gt;
      &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
      &amp;lt;unset token="activate_only_hours"&amp;gt;&amp;lt;/unset&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition value="Only Hours"&amp;gt;
      &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
      &amp;lt;unset token="activate_only_days"&amp;gt;&amp;lt;/unset&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition value="Both"&amp;gt;
      &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
      &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
  &amp;lt;/change&amp;gt;

&amp;lt;/input&amp;gt;
&amp;lt;input type="time" token="date_from"&amp;gt;
  &amp;lt;label&amp;gt;Date Range&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;-30d@d&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="day_from" depends="$activate_only_days$"&amp;gt;
  &amp;lt;label&amp;gt;From (Day):&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;Sunday&amp;lt;/default&amp;gt;
  &amp;lt;choice value="0"&amp;gt;Sunday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="1"&amp;gt;Monday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="2"&amp;gt;Tuesday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="3"&amp;gt;Wednesday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="4"&amp;gt;Thursday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="5"&amp;gt;Friday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="6"&amp;gt;Saturday&amp;lt;/choice&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="day_to" depends="$activate_only_days$"&amp;gt;
  &amp;lt;label&amp;gt;To (Day):&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;Saturday&amp;lt;/default&amp;gt;
  &amp;lt;choice value="0"&amp;gt;Sunday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="1"&amp;gt;Monday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="2"&amp;gt;Tuesday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="3"&amp;gt;Wednesday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="4"&amp;gt;Thursday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="5"&amp;gt;Friday&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="6"&amp;gt;Saturday&amp;lt;/choice&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="hour_from" depends="$activate_only_hours$"&amp;gt;
  &amp;lt;label&amp;gt;From (Hour):&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;00&amp;lt;/default&amp;gt;
  &amp;lt;choice value="00"&amp;gt;12 AM (00:00:01)&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="01"&amp;gt;01 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="02"&amp;gt;02 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="03"&amp;gt;03 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="04"&amp;gt;04 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="05"&amp;gt;05 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="06"&amp;gt;06 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="07"&amp;gt;07 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="08"&amp;gt;08 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="09"&amp;gt;09 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="10"&amp;gt;10 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="11"&amp;gt;11 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="12"&amp;gt;12 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="13"&amp;gt;01 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="14"&amp;gt;02 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="15"&amp;gt;03 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="16"&amp;gt;04 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="17"&amp;gt;05 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="18"&amp;gt;06 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="19"&amp;gt;07 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="20"&amp;gt;08 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="21"&amp;gt;09 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="22"&amp;gt;10 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="23"&amp;gt;11 PM&amp;lt;/choice&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="hour_to" depends="$activate_only_hours$"&amp;gt;
  &amp;lt;label&amp;gt;To (Hour)&amp;lt;/label&amp;gt; 
  &amp;lt;default&amp;gt;24&amp;lt;/default&amp;gt;
  &amp;lt;choice value="00"&amp;gt;12 AM (00:00:01)&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="01"&amp;gt;01 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="02"&amp;gt;02 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="03"&amp;gt;03 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="04"&amp;gt;04 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="05"&amp;gt;05 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="06"&amp;gt;06 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="07"&amp;gt;07 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="08"&amp;gt;08 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="09"&amp;gt;09 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="10"&amp;gt;10 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="11"&amp;gt;11 AM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="12"&amp;gt;12 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="13"&amp;gt;01 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="14"&amp;gt;02 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="15"&amp;gt;03 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="16"&amp;gt;04 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="17"&amp;gt;05 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="18"&amp;gt;06 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="19"&amp;gt;07 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="20"&amp;gt;08 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="21"&amp;gt;09 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="22"&amp;gt;10 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="23"&amp;gt;11 PM&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="24"&amp;gt;12 AM (11:59:59)&amp;lt;/choice&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The "depends" here seems to have no effect at all.&lt;/P&gt;

&lt;P&gt;And also, do I need to make different query statements for each user option (using "depends" in  element) or is there a more efficient solution?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394332#M25779</guid>
      <dc:creator>vpurushottam</dc:creator>
      <dc:date>2019-02-21T21:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable/disable (Hide/show) dropdown field based on options in radio buttons?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394333#M25780</link>
      <description>&lt;P&gt;(using "depends" in "row" element) *&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394333#M25780</guid>
      <dc:creator>vpurushottam</dc:creator>
      <dc:date>2019-02-21T21:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable/disable (Hide/show) dropdown field based on options in radio buttons?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394334#M25781</link>
      <description>&lt;P&gt;Hi @vpurushottam&lt;/P&gt;

&lt;P&gt;Please modify this and try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;change&amp;gt;
     &amp;lt;condition value="1"&amp;gt;
       &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;unset token="activate_only_hours"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;/condition&amp;gt;
     &amp;lt;condition value="2"&amp;gt;
       &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;unset token="activate_only_days"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;/condition&amp;gt;
     &amp;lt;condition value="3"&amp;gt;
       &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
     &amp;lt;/condition&amp;gt;
   &amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;change&amp;gt;
     &amp;lt;condition label="Only Days"&amp;gt;
       &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;unset token="activate_only_hours"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;/condition&amp;gt;
     &amp;lt;condition label="Only Hours"&amp;gt;
       &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;unset token="activate_only_days"&amp;gt;&amp;lt;/unset&amp;gt;
     &amp;lt;/condition&amp;gt;
     &amp;lt;condition label="Both (Default)"&amp;gt;
       &amp;lt;set token="activate_only_days"&amp;gt;&amp;lt;/set&amp;gt;
       &amp;lt;set token="activate_only_hours"&amp;gt;&amp;lt;/set&amp;gt;
     &amp;lt;/condition&amp;gt;
   &amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394334#M25781</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-21T21:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable/disable (Hide/show) dropdown field based on options in radio buttons?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394335#M25782</link>
      <description>&lt;P&gt;@vpurushottam, have you tried?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 22:36:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394335#M25782</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-21T22:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable/disable (Hide/show) dropdown field based on options in radio buttons?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394336#M25783</link>
      <description>&lt;P&gt;Thanks a lot @vnravikumar your solution worked ! &lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 13:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-enable-disable-Hide-show-dropdown-field-based-on/m-p/394336#M25783</guid>
      <dc:creator>vpurushottam</dc:creator>
      <dc:date>2019-02-22T13:29:18Z</dc:date>
    </item>
  </channel>
</rss>

