<?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: Why is the submit button inside a panel not working? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-submit-button-inside-a-panel-not-working/m-p/436044#M28761</link>
    <description>&lt;P&gt;@Mohsin123 while &lt;CODE&gt;&amp;lt;input&amp;gt;&lt;/CODE&gt; can be brought inside &lt;CODE&gt;&amp;lt;panels&amp;gt;&lt;/CODE&gt;, fieldset node has to be outside &lt;CODE&gt;&amp;lt;row&amp;gt;&lt;/CODE&gt; in the root dashboard node i.e. &lt;CODE&gt;&amp;lt;form&amp;gt;&lt;/CODE&gt; in case Splunk inputs are used.&lt;/P&gt;

&lt;P&gt;Following is example of input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
    &amp;lt;fieldset submitbutton="true"&amp;gt;
        &amp;lt;input type="dropdown" token="token1"&amp;gt;
            ....
        &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
              ...
        &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
    ...
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is example of moving Inputs inside panel... But Submit button stays outside:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
    &amp;lt;fieldset submitbutton="true"&amp;gt;
   &amp;lt;/fieldset&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
             &amp;lt;input type="dropdown" token="token1"&amp;gt;
                 ....
             &amp;lt;/input&amp;gt;
             ...
        &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
    ...   
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So if you want to use Splunk's Submit Button you would need to use CSS Override to position Submit Button Inside specific panel using relative position.&lt;BR /&gt;
Alternatively, you can create &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; panel with button &lt;CODE&gt;&amp;lt;input&amp;gt;&lt;/CODE&gt; but you need to use Simple XML JS extension with Splunk JS Stack to code the button Click handler to function similar to how Splunk's Submit button works.&lt;/P&gt;

&lt;P&gt;You should be able to find examples of both on Splunk Answers. Let us know if you need help with those.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2018 14:40:27 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-08-30T14:40:27Z</dc:date>
    <item>
      <title>Why is the submit button inside a panel not working?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-submit-button-inside-a-panel-not-working/m-p/436041#M28758</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;i have two dropdown menu in a panel in a dashboard&lt;BR /&gt;
i tried adding fieldset , but it's not working.&lt;BR /&gt;
Can anyone please help? &lt;BR /&gt;
` &lt;BR /&gt;
       &lt;FIELDSET submitbutton="true"&gt;&lt;BR /&gt;
      &lt;INPUT type="dropdown" token="comp" /&gt;&lt;BR /&gt;
        &lt;LABEL&gt;Component&lt;/LABEL&gt;&lt;BR /&gt;
        &lt;DEFAULT&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/DEFAULT&gt;&lt;BR /&gt;
        &amp;lt;choice value=""&amp;gt;All&lt;BR /&gt;
        &lt;FIELDFORLABEL&gt;component&lt;/FIELDFORLABEL&gt;&lt;BR /&gt;
        &lt;FIELDFORVALUE&gt;component&lt;/FIELDFORVALUE&gt;&lt;BR /&gt;
        &lt;SEARCH&gt;&lt;BR /&gt;
          &lt;QUERY&gt;index="idix" sourcetype IN ("kafkEvent","pro_ulff_logs") component=* |dedup component|table component&lt;/QUERY&gt;&lt;BR /&gt;
          &lt;EARLIEST&gt;-24h@h&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;now&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;/SEARCH&gt;&lt;BR /&gt;
      &lt;BR /&gt;
      &lt;INPUT type="dropdown" token="c-id" /&gt;&lt;BR /&gt;
        &lt;LABEL&gt;caller-id&lt;/LABEL&gt;&lt;BR /&gt;
        &lt;DEFAULT&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/DEFAULT&gt;&lt;BR /&gt;
        &amp;lt;choice value=""&amp;gt;All&lt;BR /&gt;
        &lt;FIELDFORLABEL&gt;caller-id&lt;/FIELDFORLABEL&gt;&lt;BR /&gt;
        &lt;FIELDFORVALUE&gt;caller-id&lt;/FIELDFORVALUE&gt;&lt;BR /&gt;
        &lt;SEARCH&gt;&lt;BR /&gt;
          &lt;QUERY&gt;index="idxix" sourcetype IN ("kafka:topx_ulff_logs")  caller-id in ("ssl*", "VF*") |dedup caller-id|table caller-id&lt;/QUERY&gt;&lt;BR /&gt;
          &lt;EARLIEST&gt;-24h@h&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;now&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;/SEARCH&gt;&lt;BR /&gt;
       &lt;/FIELDSET&gt;&lt;/P&gt;

&lt;P&gt;`&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:05:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-submit-button-inside-a-panel-not-working/m-p/436041#M28758</guid>
      <dc:creator>Mohsin123</dc:creator>
      <dc:date>2020-09-29T21:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the submit button inside a panel not working?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-submit-button-inside-a-panel-not-working/m-p/436042#M28759</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row&amp;gt;
       &amp;lt;fieldset submitbutton="true"&amp;gt;
      &amp;lt;input type="dropdown" token="comp"&amp;gt;
        &amp;lt;label&amp;gt;Component&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;component&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;component&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="idix" sourcetype IN ("kafkEvent","pro_ulff_logs") component=* |dedup component|table component&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="dropdown" token="c-id"&amp;gt;
        &amp;lt;label&amp;gt;caller-id&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;caller-id&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;caller-id&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="idxix" sourcetype IN ("kafka:topx_ulff_logs")  caller-id in ("ssl*", "VF*") |dedup caller-id|table caller-id&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/input&amp;gt; 

  &amp;lt;/row&amp;gt;&amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2018 12:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-submit-button-inside-a-panel-not-working/m-p/436042#M28759</guid>
      <dc:creator>Mohsin123</dc:creator>
      <dc:date>2018-08-30T12:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the submit button inside a panel not working?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-submit-button-inside-a-panel-not-working/m-p/436043#M28760</link>
      <description>&lt;P&gt;I looked at one of mine to compare. At the very end, try changing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;/input&amp;gt; 

   &amp;lt;/row&amp;gt;&amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2018 14:07:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-submit-button-inside-a-panel-not-working/m-p/436043#M28760</guid>
      <dc:creator>johnnyfrx</dc:creator>
      <dc:date>2018-08-30T14:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the submit button inside a panel not working?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-submit-button-inside-a-panel-not-working/m-p/436044#M28761</link>
      <description>&lt;P&gt;@Mohsin123 while &lt;CODE&gt;&amp;lt;input&amp;gt;&lt;/CODE&gt; can be brought inside &lt;CODE&gt;&amp;lt;panels&amp;gt;&lt;/CODE&gt;, fieldset node has to be outside &lt;CODE&gt;&amp;lt;row&amp;gt;&lt;/CODE&gt; in the root dashboard node i.e. &lt;CODE&gt;&amp;lt;form&amp;gt;&lt;/CODE&gt; in case Splunk inputs are used.&lt;/P&gt;

&lt;P&gt;Following is example of input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
    &amp;lt;fieldset submitbutton="true"&amp;gt;
        &amp;lt;input type="dropdown" token="token1"&amp;gt;
            ....
        &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
              ...
        &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
    ...
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is example of moving Inputs inside panel... But Submit button stays outside:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
    &amp;lt;fieldset submitbutton="true"&amp;gt;
   &amp;lt;/fieldset&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
             &amp;lt;input type="dropdown" token="token1"&amp;gt;
                 ....
             &amp;lt;/input&amp;gt;
             ...
        &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
    ...   
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So if you want to use Splunk's Submit Button you would need to use CSS Override to position Submit Button Inside specific panel using relative position.&lt;BR /&gt;
Alternatively, you can create &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; panel with button &lt;CODE&gt;&amp;lt;input&amp;gt;&lt;/CODE&gt; but you need to use Simple XML JS extension with Splunk JS Stack to code the button Click handler to function similar to how Splunk's Submit button works.&lt;/P&gt;

&lt;P&gt;You should be able to find examples of both on Splunk Answers. Let us know if you need help with those.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 14:40:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-submit-button-inside-a-panel-not-working/m-p/436044#M28761</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-30T14:40:27Z</dc:date>
    </item>
  </channel>
</rss>

