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!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

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