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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...