<?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: Splunk Classic Dashboard - Prevent trigger of &amp;lt;change&amp;gt; on first load in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710894#M58168</link>
    <description>&lt;P&gt;I was able to solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By populating the dropdowns in the Dashboard from an Inputlookup (with data from a scheduled search), it started working to use the approach I detailed below (setting the FirstLoad Token). Not sure exactly why this made it work but at least it works.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 08:08:58 GMT</pubDate>
    <dc:creator>dmoberg</dc:creator>
    <dc:date>2025-02-07T08:08:58Z</dc:date>
    <item>
      <title>Splunk Classic Dashboard - Prevent trigger of &lt;change&gt; on first load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710511#M58131</link>
      <description>&lt;P&gt;In my dashboard, when one of the dropdowns are changed I need to reset the value in the other dropdowns to the default value (*); this can easily be done using the &amp;lt;change&amp;gt; function so no issues there. The problem arises when the user clicks a link to the dashboard with pre-populated parameters for the dropdowns (user is taken to a specific state of the dropdowns). The loading of the dashboard with the incoming HTTP parameters for the dropdowns also trigger the &amp;lt;change&amp;gt; to happen and thus resetting all of the selected dropdowns.&lt;/P&gt;&lt;P&gt;My questions is, how can I prevent the &amp;lt;change&amp;gt; to trigger on the Initial Load of the Dashboard? Once the Dashboard has been loaded I want the &amp;lt;change&amp;gt; to trigger when the user changes certain dropdowns.&lt;/P&gt;&lt;P&gt;I tried the following approach. In the dropdown for which I want to prevent the &amp;lt;change&amp;gt; to trigger a condition was added to check that the Token $FirstLoad$ is set to "Done".&lt;/P&gt;&lt;P&gt;&amp;lt;change&amp;gt;&lt;BR /&gt;&amp;lt;condition match="tostring($FirstLoad$) == &amp;amp;quot;Done&amp;amp;quot;"&amp;gt;&lt;BR /&gt;&amp;lt;set token="form.PipelineName"&amp;gt;*&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;set token="form.LabelName"&amp;gt;*&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;/P&gt;&lt;P&gt;In the heaviest Search I set a Token when completed (Done):&lt;BR /&gt;&amp;lt;done&amp;gt;&lt;BR /&gt;&amp;lt;set token="FirstLoad"&amp;gt;Done&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;/done&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thinking for the above was that since on Initial Load the $FirstLoad$ Token will not initially be set which should prevent the &amp;lt;change&amp;gt; to trigger, but as soon as the $FirstLoad$ Token is updated to "Done", the &amp;lt;change&amp;gt; is triggered. Very frustrating.&lt;BR /&gt;&lt;BR /&gt;Anyways, maybe I am missing something simple? Any ideas are appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 17:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710511#M58131</guid>
      <dc:creator>dmoberg</dc:creator>
      <dc:date>2025-02-03T17:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Classic Dashboard - Prevent trigger of &lt;change&gt; on first load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710557#M58136</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248238"&gt;@dmoberg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;see if this my old answer solves your requirement:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/How-to-clear-reset-the-value-of-a-token/td-p/601208" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/How-to-clear-reset-the-value-of-a-token/td-p/601208&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 08:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710557#M58136</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-04T08:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Classic Dashboard - Prevent trigger of &lt;change&gt; on first load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710560#M58138</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;, thanks but we need this to be automatically happening. It has to be some way to fix this?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 08:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710560#M58138</guid>
      <dc:creator>dmoberg</dc:creator>
      <dc:date>2025-02-04T08:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Classic Dashboard - Prevent trigger of &lt;change&gt; on first load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710564#M58140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248238"&gt;@dmoberg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;for my knowledge, this is the only solution, no automatic.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 09:30:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710564#M58140</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-04T09:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Classic Dashboard - Prevent trigger of &lt;change&gt; on first load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710894#M58168</link>
      <description>&lt;P&gt;I was able to solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By populating the dropdowns in the Dashboard from an Inputlookup (with data from a scheduled search), it started working to use the approach I detailed below (setting the FirstLoad Token). Not sure exactly why this made it work but at least it works.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 08:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710894#M58168</guid>
      <dc:creator>dmoberg</dc:creator>
      <dc:date>2025-02-07T08:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Classic Dashboard - Prevent trigger of &lt;change&gt; on first load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710895#M58169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248238"&gt;@dmoberg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;let me know if I can help you more, or, please, accept one answer for the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 08:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Classic-Dashboard-Prevent-trigger-of-lt-change-gt-on/m-p/710895#M58169</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-07T08:32:14Z</dc:date>
    </item>
  </channel>
</rss>

