<?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: Fill default option from dropdown with a token in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fill-default-option-from-dropdown-with-a-token/m-p/546993#M37600</link>
    <description>&lt;P&gt;Thanks a lot¡ It works¡&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 09:16:52 GMT</pubDate>
    <dc:creator>DanielSp</dc:creator>
    <dc:date>2021-04-07T09:16:52Z</dc:date>
    <item>
      <title>Fill default option from dropdown with a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fill-default-option-from-dropdown-with-a-token/m-p/546972#M37598</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a dropdown that I need to be filled depending other dropdown&lt;BR /&gt;Dropdown1:&lt;BR /&gt;A-&amp;gt;X&lt;BR /&gt;B-&amp;gt;Y,Z&lt;BR /&gt;C-&amp;gt;W,Z&lt;/P&gt;&lt;P&gt;If I selected A in the first one, I need that appear already selected X in the second dropdown&lt;BR /&gt;If I selected B in the second one, I need that appear already selected (change from previous selection) to Y,Z in the second dropdown&lt;BR /&gt;If I selected C in the thirstone, I need that appear already selected (change from previous selection) to W,Z in the second dropdown&lt;BR /&gt;&lt;BR /&gt;I tried with a token in the first dropdown and put the follow code in the second dropdown&lt;BR /&gt;&amp;lt;default&amp;gt;$token$&amp;lt;/default&amp;gt;&lt;BR /&gt;It would work with only ONE value, but I not achieve that work for B and C that have 2 values&lt;/P&gt;&lt;P&gt;Could you please help me with It?&lt;BR /&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 07:11:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fill-default-option-from-dropdown-with-a-token/m-p/546972#M37598</guid>
      <dc:creator>DanielSp</dc:creator>
      <dc:date>2021-04-07T07:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Fill default option from dropdown with a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fill-default-option-from-dropdown-with-a-token/m-p/546974#M37599</link>
      <description>&lt;P&gt;If I understand correctly, the second dropdown is a multi-select which you want some of the options preselected based on the choice of the first dropdown?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="dropdown" token="choice" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Choice&amp;lt;/label&amp;gt;
      &amp;lt;choice value="X"&amp;gt;A&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Y,Z"&amp;gt;B&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="W,Z"&amp;gt;C&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="form.preselect"&amp;gt;split($choice$,",")&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="preselect" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Preselect&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;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Apr 2021 07:33:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fill-default-option-from-dropdown-with-a-token/m-p/546974#M37599</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-07T07:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fill default option from dropdown with a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fill-default-option-from-dropdown-with-a-token/m-p/546993#M37600</link>
      <description>&lt;P&gt;Thanks a lot¡ It works¡&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 09:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fill-default-option-from-dropdown-with-a-token/m-p/546993#M37600</guid>
      <dc:creator>DanielSp</dc:creator>
      <dc:date>2021-04-07T09:16:52Z</dc:date>
    </item>
  </channel>
</rss>

