<?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: default value for dropdown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303584#M19354</link>
    <description>&lt;P&gt;Glad it worked!!! I have converted to Answer. Please accept! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2017 10:22:21 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-11-27T10:22:21Z</dc:date>
    <item>
      <title>default value for dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303579#M19349</link>
      <description>&lt;P&gt;I have set default values for dropdown as all and have set as panel condition &lt;BR /&gt;
Then i have a readio button for selection of both which i have set for table condition.&lt;BR /&gt;
Now when i first time load my dashboard then by default i want to see all my panels which is not working &lt;BR /&gt;
first i have to change value in the dropdown then only it starts working&lt;BR /&gt;
Has anyone faced this issue ?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Nov 2017 06:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303579#M19349</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-25T06:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: default value for dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303580#M19350</link>
      <description>&lt;P&gt;@surekhasplunk, is the searchWhenChanged set to false? Can you share dashboard code?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Nov 2017 11:20:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303580#M19350</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-25T11:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: default value for dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303581#M19351</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="dropregion" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;REGION&amp;lt;/label&amp;gt;
   &amp;lt;choice value="ALL"&amp;gt;ALL&amp;lt;/choice&amp;gt;
    &amp;lt;condition match="$dropregion$==&amp;amp;quot;ALL&amp;amp;quot;"&amp;gt;
      &amp;lt;set token="dropuk"&amp;gt;1&amp;lt;/set&amp;gt;
      &amp;lt;set token="dropemea"&amp;gt;1&amp;lt;/set&amp;gt;
      &amp;lt;set token="dropapac"&amp;gt;1&amp;lt;/set&amp;gt;
      &amp;lt;set token="dropindia"&amp;gt;1&amp;lt;/set&amp;gt;
      &amp;lt;set token="dropglobal"&amp;gt;1&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition match="$dropregion$==&amp;amp;quot;UK&amp;amp;quot;"&amp;gt;
      &amp;lt;set token="dropuk"&amp;gt;1&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;....&lt;/P&gt;

&lt;P&gt;This token i have set as condition of panel dependent&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="radio" token="button" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;RUN/CHANGE BANK&amp;lt;/label&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This token is set for table dependent. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel depends="$dropuk$"&amp;gt;
  &amp;lt;title&amp;gt;RTB&amp;lt;/title&amp;gt;
  &amp;lt;table depends="$run$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Nov 2017 06:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303581#M19351</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-27T06:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: default value for dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303582#M19352</link>
      <description>&lt;P&gt;@surekhasplunk, I can not see default value being set for either dropdown or radio. Can you please confirm whether you are defaulting these on form load or not?&lt;/P&gt;

&lt;P&gt;Also your table is depended on token $run$, which I am not sure as to how the same is set.&lt;/P&gt;

&lt;P&gt;If you are on Splunk 6.5 or higher, you can use &lt;CODE&gt;&amp;lt;init&amp;gt;&lt;/CODE&gt; section in Simple XML to set some default values for required tokens on form load&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;init&amp;gt;
    &amp;lt;set token="dropuk"&amp;gt;1&amp;lt;/set&amp;gt;
    &amp;lt;set token="button"&amp;gt;...
    ...
&amp;lt;/init&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Refer to Splunk documentation: &lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/latest/Viz/tokens#Guidelines"&gt;http://docs.splunk.com/Documentation/SplunkCloud/latest/Viz/tokens#Guidelines&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 08:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303582#M19352</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-27T08:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: default value for dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303583#M19353</link>
      <description>&lt;P&gt;Cheers !!! this init method worked&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 09:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303583#M19353</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-27T09:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: default value for dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303584#M19354</link>
      <description>&lt;P&gt;Glad it worked!!! I have converted to Answer. Please accept! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/default-value-for-dropdown/m-p/303584#M19354</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-27T10:22:21Z</dc:date>
    </item>
  </channel>
</rss>

