All Apps and Add-ons

Add a dropdown feature to the dashboard using JavaScript and filter the results

iamsplunker31
Path Finder

We have a dashboard and it has 3 inputs Date, Transaction dropdown, Submit Button. I’m looking to add a dropdown (Manager) between date and transaction dropdown so that I can only see the transactions based on the Manager.

0 Karma

jeffland
SplunkTrust
SplunkTrust

It sounds like you want to use the value of your manager input token in the search that generates the results for the transaction input. I can't tell you how exactly to do it on your dashboard since I don't have your code, but it involves having the manager token in the query of the transaction input, the same way you have it in the main search that creates your results (table or view or whatever you got).
You need to make sure that the tokens work in both searches of course.

0 Karma

niketn
Legend

@iamsplunker31 by JavaScript do you mean Simple XML JS Extension or HTML Dashboard?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

iamsplunker31
Path Finder

Hi @niketnilay : It's an HTML dashboard

0 Karma
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

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