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
SplunkTrust
SplunkTrust

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!

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...