<?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 reset a child multiselect input when the value for the parent input is changed? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238386#M14793</link>
    <description>&lt;P&gt;Have you tried unsetting the token in your SubRegion dropdown? Add this to your Country dropdown&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input token="country"&amp;gt;
...
&amp;lt;change&amp;gt;
   &amp;lt;unset token="subregion"&amp;gt;&amp;lt;/unset&amp;gt;
&amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Jul 2016 12:59:23 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-07-06T12:59:23Z</dc:date>
    <item>
      <title>How to reset a child multiselect input when the value for the parent input is changed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238385#M14792</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'm having some trouble trying to reset multiselect value:&lt;BR /&gt;
I have a first multiselect input where you can choose some Region. Then I have a second multiselect input for Country which is populated based on the value(s) chosen in the first multiselect form.&lt;/P&gt;

&lt;P&gt;So for example when I select Asia-Pacific for Region, I then can choose Australia for Country. What I would like to do is an auto-delete of Australia in Country as soon as I deselect Asia-Pacific in SubRegion. Currently, if I deselect Asia-Pacific and select France, we have SubRegion = France and Country=Australia which is not a logical selection.&lt;/P&gt;

&lt;P&gt;Thanks in advance for any help&lt;/P&gt;

&lt;P&gt;[EDIT]&lt;/P&gt;

&lt;P&gt;here is a piece of my xml:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="multiselect" token="subregion" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Sub Region:&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All sub-regions&amp;lt;/choice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=ibo_idx_system|  table "Sub Region _CRD" | stats first(*) as * by "Sub Region _CRD"&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;"Sub Region _CRD" ="&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Sub Region _CRD&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Sub Region _CRD&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;unset token="country"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="country" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Country:&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=ibo_idx_system |search $subregion$ | table "Country _CRD" | stats first(*) as * by  "Country _CRD"&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
      &amp;lt;/search&amp;gt;
     &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;"Country _CRD" ="&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Country _CRD&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Country _CRD&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All countries&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;unset token="subregion"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jul 2016 07:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238385#M14792</guid>
      <dc:creator>MaryvonneMB</dc:creator>
      <dc:date>2016-07-06T07:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a child multiselect input when the value for the parent input is changed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238386#M14793</link>
      <description>&lt;P&gt;Have you tried unsetting the token in your SubRegion dropdown? Add this to your Country dropdown&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input token="country"&amp;gt;
...
&amp;lt;change&amp;gt;
   &amp;lt;unset token="subregion"&amp;gt;&amp;lt;/unset&amp;gt;
&amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:59:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238386#M14793</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-06T12:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a child multiselect input when the value for the parent input is changed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238387#M14794</link>
      <description>&lt;P&gt;Thanks for reply. I tried but doesn't work: I've tried &lt;CODE&gt;&amp;lt;change&amp;gt;&amp;lt;unset token="country"&amp;gt;&amp;lt;/unset&amp;gt;&amp;lt;/change&amp;gt;&lt;/CODE&gt; in my subregion input and alos  &lt;CODE&gt;&amp;lt;change&amp;gt;&amp;lt;unset token="subregion"&amp;gt;&amp;lt;/unset&amp;gt;&amp;lt;/change&amp;gt;&lt;/CODE&gt; in my subregion input. One of them or both, nothing works. I always have the selection in my input&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 09:14:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238387#M14794</guid>
      <dc:creator>MaryvonneMB</dc:creator>
      <dc:date>2016-07-07T09:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a child multiselect input when the value for the parent input is changed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238388#M14795</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Working on this problem with a colleague, we finally find how we have to do:&lt;BR /&gt;
We don't have to unset only the token "country" but also the token "form.country"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;change&amp;gt;
&amp;lt;unset token="form.country"&amp;gt;&amp;lt;/unset&amp;gt;
&amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then when Subregion change we don't see the Country selected input anymore.&lt;BR /&gt;
Thank  you very much sundareshr for your answer!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 09:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238388#M14795</guid>
      <dc:creator>MaryvonneMB</dc:creator>
      <dc:date>2016-07-07T09:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a child multiselect input when the value for the parent input is changed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238389#M14796</link>
      <description>&lt;P&gt;Resolved my problem, thanks !!!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 21:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238389#M14796</guid>
      <dc:creator>lucasfbeinjamin</dc:creator>
      <dc:date>2018-08-10T21:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a child multiselect input when the value for the parent input is changed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238390#M14797</link>
      <description>&lt;P&gt;I am also facing similar kind of issue. I have a Timerange input and one more Multiselect input to select application. Whenever I refresh the page or I open it newly, still the previous value which I selected in the mutiselect is still showing.&lt;BR /&gt;
My multiselect value is depend on the timerange which I select. Below is my sample code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="timerange" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Timerange&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;-15m&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="multiselect" token="app" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Application&amp;lt;/label&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;App&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;App&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;index=* |table app |dedup app&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$timerange.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$timerange.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;change&amp;gt;
    &amp;lt;unset&amp;gt;token="form.timerange"&amp;lt;/unset&amp;gt;
  &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am using the token &lt;CODE&gt;$app$&lt;/CODE&gt; in my further code. Could anyone please help me on this&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 10:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-a-child-multiselect-input-when-the-value-for-the/m-p/238390#M14797</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2019-03-14T10:54:32Z</dc:date>
    </item>
  </channel>
</rss>

