<?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 clear the old values of a multiselect input when I change the value on another drop-down in my Simple XML dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-clear-the-old-values-of-a-multiselect-input-when-I-change/m-p/232042#M14388</link>
    <description>&lt;P&gt;Thank you adevi! Works perfect for me.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2019 18:31:15 GMT</pubDate>
    <dc:creator>richielynch89</dc:creator>
    <dc:date>2019-08-13T18:31:15Z</dc:date>
    <item>
      <title>How to clear the old values of a multiselect input when I change the value on another drop-down in my Simple XML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-clear-the-old-values-of-a-multiselect-input-when-I-change/m-p/232040#M14386</link>
      <description>&lt;P&gt;I would like to clear the old values of a multiselect input when I change the value on another drop-down. Actually, when I change the value in first drop-down, then the multiselect value does not clear the already selected value. It is taking the new values, but due to old selected value, the result in not coming as expected. &lt;/P&gt;

&lt;P&gt;Does someone have any solution for this? I am using Simple XML in dashboard.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:33:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-clear-the-old-values-of-a-multiselect-input-when-I-change/m-p/232040#M14386</guid>
      <dc:creator>sjain135</dc:creator>
      <dc:date>2016-06-28T12:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the old values of a multiselect input when I change the value on another drop-down in my Simple XML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-clear-the-old-values-of-a-multiselect-input-when-I-change/m-p/232041#M14387</link>
      <description>&lt;P&gt;I found out this answer helpful:&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/218751/selectfirstchoice-not-working-in-dynamic-dropdowns.html"&gt;link here&lt;/A&gt;&lt;BR /&gt;
[&lt;A href="https://answers.splunk.com/answers/218751/selectfirstchoice-not-working-in-dynamic-dropdowns.html"&gt;https://answers.splunk.com/answers/218751/selectfirstchoice-not-working-in-dynamic-dropdowns.html&lt;/A&gt;]&lt;/P&gt;

&lt;P&gt;The above link did not explain it clearly.&lt;/P&gt;

&lt;P&gt;In your drop-down Simple XML, unset the multiselect token. Make sure you specify "&lt;STRONG&gt;form.&lt;/STRONG&gt; your-token-name" in the unset tag:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;change&amp;gt;
        &amp;lt;unset token="form.my_id_name_multiselect"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Full code&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
&amp;lt;fieldset submitButton="true" autoRun="false"&amp;gt;
    &amp;lt;input type="dropdown" token="my_id" searchWhenChanged="false"&amp;gt;
          &amp;lt;label&amp;gt;Network&amp;lt;/label&amp;gt;
          &amp;lt;search&amp;gt;
            &amp;lt;query&amp;gt; index="someindex" | top ids &amp;lt;/query&amp;gt;
            &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
            &amp;lt;latest&amp;gt;now&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 token="form.my_id_name_multiselect"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/change&amp;gt;
          &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
          &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
        &amp;lt;/input&amp;gt;
 &amp;lt;input type="multiselect" token="my_id_name_multiselect" searchWhenChanged="false"&amp;gt;
      &amp;lt;label&amp;gt;Name&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;ndex="someindex" | where id=$my_id$ | table id_name&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;id_name="&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;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 14:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-clear-the-old-values-of-a-multiselect-input-when-I-change/m-p/232041#M14387</guid>
      <dc:creator>adevi</dc:creator>
      <dc:date>2016-09-21T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the old values of a multiselect input when I change the value on another drop-down in my Simple XML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-clear-the-old-values-of-a-multiselect-input-when-I-change/m-p/232042#M14388</link>
      <description>&lt;P&gt;Thank you adevi! Works perfect for me.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 18:31:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-clear-the-old-values-of-a-multiselect-input-when-I-change/m-p/232042#M14388</guid>
      <dc:creator>richielynch89</dc:creator>
      <dc:date>2019-08-13T18:31:15Z</dc:date>
    </item>
  </channel>
</rss>

