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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...