<?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 dashboard when I press submit? (or send using HTTP POST) in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-reset-dashboard-when-I-press-submit-or-send-using-HTTP/m-p/408602#M7073</link>
    <description>&lt;P&gt;This is a cool answer that helps a little, BUT the results are still in the URL.&lt;/P&gt;

&lt;P&gt;This means that if I refresh the page, it repeats the action again and I don't want it to.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 11:38:22 GMT</pubDate>
    <dc:creator>agentsofshield</dc:creator>
    <dc:date>2019-07-30T11:38:22Z</dc:date>
    <item>
      <title>How to reset dashboard when I press submit? (or send using HTTP POST)</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-reset-dashboard-when-I-press-submit-or-send-using-HTTP/m-p/408600#M7071</link>
      <description>&lt;P&gt;I have a Splunk dashboard that sends data as variables to a script.&lt;/P&gt;
&lt;P&gt;I don't want the script to run every time they refresh the page or go back a page. What should I do?&lt;/P&gt;
&lt;P&gt;Is there a way to "submit" the form using HTTP POST so that the results won't appear in the URL?&lt;/P&gt;
&lt;P&gt;Is there a way to run the search AND refresh the page at the same time while pressing "submit"?&lt;/P&gt;
&lt;P&gt;Or is there an easy way to do it using JavaScript?&lt;/P&gt;
&lt;P&gt;Example of what I have:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
    &amp;lt;label&amp;gt;Capture Packets&amp;lt;/label&amp;gt;
    &amp;lt;fieldset submitButton="True"&amp;gt;
        &amp;lt;input type="text" token="host"&amp;gt;
            &amp;lt;label&amp;gt;Host&amp;lt;/label&amp;gt;
        &amp;lt;/input&amp;gt;
        &amp;lt;input type="dropdown" token="runtime"&amp;gt;
            &amp;lt;choice value="30"&amp;gt;30 Seconds&amp;lt;/choice&amp;gt;
            &amp;lt;choice value="60"&amp;gt;1 Minute&amp;lt;/choice&amp;gt;
            &amp;lt;choice value="120"&amp;gt;2 Minutes&amp;lt;/choice&amp;gt;
        &amp;lt;/input&amp;gt;
    &amp;lt;/fieldset&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
            &amp;lt;title&amp;gt;Run Script&amp;lt;/title&amp;gt;
            &amp;lt;table&amp;gt;
                &amp;lt;search&amp;gt;
                    &amp;lt;query&amp;gt;| script capture $host$ $runtime$&amp;lt;/query&amp;gt;
                &amp;lt;/search&amp;gt;
                &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
            &amp;lt;/table&amp;gt;
        &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jun 2020 22:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-reset-dashboard-when-I-press-submit-or-send-using-HTTP/m-p/408600#M7071</guid>
      <dc:creator>agentsofshield</dc:creator>
      <dc:date>2020-06-17T22:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset dashboard when I press submit? (or send using HTTP POST)</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-reset-dashboard-when-I-press-submit-or-send-using-HTTP/m-p/408601#M7072</link>
      <description>&lt;P&gt;Take a look at this post.  The answer may help you.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/711125/how-do-you-reset-a-dashboard-field-after-hitting-t.html"&gt;https://answers.splunk.com/answers/711125/how-do-you-reset-a-dashboard-field-after-hitting-t.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 13:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-reset-dashboard-when-I-press-submit-or-send-using-HTTP/m-p/408601#M7072</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2019-07-29T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset dashboard when I press submit? (or send using HTTP POST)</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-reset-dashboard-when-I-press-submit-or-send-using-HTTP/m-p/408602#M7073</link>
      <description>&lt;P&gt;This is a cool answer that helps a little, BUT the results are still in the URL.&lt;/P&gt;

&lt;P&gt;This means that if I refresh the page, it repeats the action again and I don't want it to.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 11:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-reset-dashboard-when-I-press-submit-or-send-using-HTTP/m-p/408602#M7073</guid>
      <dc:creator>agentsofshield</dc:creator>
      <dc:date>2019-07-30T11:38:22Z</dc:date>
    </item>
  </channel>
</rss>

