Splunk Search

Submit Button not working correctly

sahiljindal290
New Member

Hi Splunk Team,

I am using a dropdown input form. Corresponding to a value of dropdown, it should show panel. But before hitting the submit button, it is giving me the result. Can you please guide me?

I have tried various solution which there are there on Splunk QA but it is not working for me.
https://answers.splunk.com/answers/742451/searchwhenchangedfalse-not-honored-1.html
https://answers.splunk.com/answers/679596/what-is-the-expected-behavior-for-submit-button-wh.html

My Sample code:-

<input type="time" token="Time" searchWhenChanged="false">
  <label>Time Picker</label>
  <default>
    <earliest>@d</earliest>
    <latest>now</latest>
  </default>
</input>
<input type="dropdown" token="APPLICATION" searchWhenChanged="false">
  <label>APPLICATION</label>
  <choice value="svc-logisticsdm-mlo">svc-logisticsdm-mlo</choice>
  <choice value="svc-logistics-bookings">svc-logistics-bookings</choice>
  <choice value="svc-logix-loms-status-updates">svc-logix-loms-status-updates</choice>
  <choice value="svc-logix-loms-create-order">svc-logix-loms-create-order</choice>
  <choice value="svc-logix-stock-check-uat">svc-logix-stock-check-uat</choice>
  <default>svc-logistics-bookings</default>
  <change>
    <set token="tokLogLevelOnChange">$value$</set>
  </change>
</input>
<input type="text" token="tokLogLevelOnSubmit" searchWhenChanged="false" depends="$justHideMe$">
  <label>searchOnSubmit</label>
  <change>
    <condition value="svc-logistics-bookings">
      <unset token="logisticsdm"></unset>
      <unset token="status-updates"></unset>
      <unset token="create-order"></unset>
      <unset token="stock-check"></unset>
      <set token="bookings"></set>
    </condition>
    <condition value="svc-logix-stock-check-uat">
      <unset token="logisticsdm"></unset>
      <unset token="status-updates"></unset>
      <unset token="create-order"></unset>
      <unset token="bookings"></unset>
      <set token="stock-check"></set>
    </condition>
    <condition value="create-order">
      <unset token="logisticsdm"></unset>
      <unset token="status-updates"></unset>
      <unset token="bookings"></unset>
      <unset token="stock-check"></unset>
      <set token="create-order"></set>
    </condition>
    <condition value="svc-logix-loms-status-updates">
      <unset token="logisticsdm"></unset>
      <unset token="stock-check"></unset>
      <unset token="create-order"></unset>
      <unset token="bookings"></unset>
      <set token="status-updates"></set>
    </condition>
    <condition value="svc-logisticsdm-mlo">
      <unset token="create-order"></unset>
      <unset token="status-updates"></unset>
      <unset token="bookings"></unset>
      <unset token="stock-check"></unset>
      <set token="logisticsdm"></set>
    </condition>
  </change>
  <default>$tokLogLevelOnChange$</default>
</input>

Any kind of help would be appreciated.

0 Karma

MuS
Legend

Hi there,

I just published your question, but you have not posted the complete dashboard XML so this will tricky to answer because we don't know what happens before the posted XML code. Please modify the question to include the complete XML code so people are able to help you.

Thanks

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...