Splunk Search

Add calendar control in fieldset in a view

spatil
Path Finder

my need is to add calendar control to pickup single date , in a fieldset of a view. I do not want to use because using customTime of it I can select a range. To select single date I need to select same date in from and to.

How can I add such date picker ?

regards, S.

Tags (1)

martin_mueller
SplunkTrust
SplunkTrust

You can do this inside a Sideview Utils HTML module to get a single date picker:

<script>
  $$(function() {
    $$( "#datepicker" ).datepicker();
  });
</script>
<p>Date: <input type="text" id="datepicker" /></p>

That's the sample code from http://jqueryui.com/datepicker/, customize as needed.

nawneel
Communicator

This works for me, Thanks @martin_mueller
i also added some custom js to format according to my need

0 Karma

sfatnass
Contributor

hi i don't understand how can i add the date picker on my dashboard.

i get this error when i try :

Uncaught ReferenceError: $$ is not defined

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...