All Apps and Add-ons

splunk Dashboard txt box input now time

splunk_jcm
New Member

alt text
alt text

I want to put the current time in the initial and default values!

current time value example = 2019-09-20

0 Karma

HiroshiSatoh
Champion

How is it like this?

<form>
  <init>
    <eval token="tk_date">strftime(now(),"%Y-%m-%d")</eval>
  </init>
  <fieldset submitButton="false">
    <input type="text" token="field1">
      <label>field1</label>
      <default>$tk_date$</default>
      <initialValue>$tk_date$</initialValue>
    </input>
  </fieldset>
</form>
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...