Dashboards & Visualizations

Bug in changing time picker values for last 7 days?


Hi, I managed to get the time picker label value like this:

<fieldset autoRun="true" submitButton="false">
    <input type="time" token="time_token" searchWhenChanged="true">
      <label>Select time</label>
         <eval token="displayTime">$label$</eval>


But I realized if I change the timepicker value to last 7 days from presets then it says "Custom time' instead? How do I write an if loop to check if "Last 7 days" is chosen so I can set the label manually instead of forcing the user to choose from relative time?

0 Karma

Esteemed Legend

The file that controls this is times.conf and you can modify the entries as well as the labels and values:

0 Karma


Could you post the sample of where displayTime is being used ? is it just in the panel headers ?

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...