Dashboards & Visualizations

How to reset timepicker?

matstap
Communicator

I have a dashboard with a panel with a table that depends on $time_tok.earliest$ from the time picker. I have an option in a dropdown, token=deployment, to reset the time tokens and thus hide the table:

<input type="dropdown" token="deployment">
      <label>Deployment</label>
      <choice value="choice1">choice1</choice>
      <choice value="choice2">choice2</choice>
      <choice value="choice3">choice3</choice>
      <choice value="&quot;&quot;">Select</choice>
      <change>
        <condition value="&quot;&quot;">
          <unset token="time_tok.earliest"></unset>
          <unset token="time_tok.latest"></unset>
        </condition>
      </change>
    </input>

When I select this option to reset the timepicker tokens, the table is successfully hidden, but the time tokens aren't being set when I click Submit, so the table is never unhidden. How do I achieve this?

0 Karma
Get Updates on the Splunk Community!

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...

Finding Based Detections General Availability

Overview  We’ve come a long way, folks, but here in Enterprise Security 8.4 I’m happy to announce Finding ...

Get Your Hands Dirty (and Your Shoes Comfy): The Splunk Experience

Hands-On Learning and Technical Seminars  Sometimes, you just need to see the code. For those looking for a ...