Splunk Search

About autorun option in fieldset

tkdguq0110
Path Finder

here's my code

<fieldset submitButton="true" autoRun="false">
<input type="text" token="field1">
</fieldset>

I want to unchange the value that I rewrite automatically.
someone said, I need to put this option, searchWhenChange="false"
my wondering is what is the meaning of autoRun="false"
It's the same result value if I write autoRun="true" and also autoRun="false"
Thanks

Tags (2)
1 Solution

vnravikumar
Champion

Hi

Check this sample, when autoRun=ture, without clicking, submit button result get loaded. modify autoRun in this example and see the difference.

<form>
  <label>multiselect</label>
  <fieldset submitButton="true" autoRun="true">
    <input type="multiselect" token="field1" searchWhenChanged="false">
      <label>field1</label>
      <valuePrefix>method="</valuePrefix>
      <delimiter> OR </delimiter>
      <valueSuffix>"</valueSuffix>
      <fieldForLabel>method</fieldForLabel>
      <fieldForValue>method</fieldForValue>
      <search>
        <query>index="_internal" sourcetype=splunkd_ui_access |stats count by method</query>
      </search>
      <choice value="*">All</choice>
      <default>*</default>
    </input>
  </fieldset>
  <row>
    <panel>
      <table>
        <search>
          <query>index="_internal" $field1$</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</form>

View solution in original post

vnravikumar
Champion

Hi

Check this sample, when autoRun=ture, without clicking, submit button result get loaded. modify autoRun in this example and see the difference.

<form>
  <label>multiselect</label>
  <fieldset submitButton="true" autoRun="true">
    <input type="multiselect" token="field1" searchWhenChanged="false">
      <label>field1</label>
      <valuePrefix>method="</valuePrefix>
      <delimiter> OR </delimiter>
      <valueSuffix>"</valueSuffix>
      <fieldForLabel>method</fieldForLabel>
      <fieldForValue>method</fieldForValue>
      <search>
        <query>index="_internal" sourcetype=splunkd_ui_access |stats count by method</query>
      </search>
      <choice value="*">All</choice>
      <default>*</default>
    </input>
  </fieldset>
  <row>
    <panel>
      <table>
        <search>
          <query>index="_internal" $field1$</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</form>

tkdguq0110
Path Finder

Thanks for your example.
All things is clear.!!
you are genious!

0 Karma

vnravikumar
Champion

If it helps you, please accept.

0 Karma

vnravikumar
Champion

Hi

When autoRun= true, means the search runs as soon as it is loaded.

0 Karma

tkdguq0110
Path Finder

loaded means like refresh a dashboard?
But, I wrote autoRun="false", dashboard loaded well automatically

0 Karma

vnravikumar
Champion

Search will run automatically at the time of page load with all the tokens

tkdguq0110
Path Finder

sorry, I do not understand.
you said that "When autoRun= true, means the search runs as soon as it is loaded."
it is loaded, what is "IT"? dashboard?

0 Karma

tkdguq0110
Path Finder

sorry man, I do not understand clearly.
When autoRun= true, means the search runs as soon as it is loaded.
Could you give me an example?

0 Karma

vnravikumar
Champion

yes, dashboard.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...