Dashboards & Visualizations

How to unset all tokens at once

Gasparzinho
Engager

I have dropdown with 100 values so-so (the values come from a CSV file), clicking on each of these should open up a different panel and hide the others. Is there a way to do it without having to unset the other 99 for each single value?

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

In your dropdown change event, set each token based on the result of an appropriate mvfind

<eval token="DisplayPanel1">mvfind('form.panelstodisplay',"DisplayPanel1")</eval>

 mvfind will return null if the value is not selected, which is the same as unsetting the token

View solution in original post

Gasparzinho
Engager

You are the best, thank you very much

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

In your dropdown change event, set each token based on the result of an appropriate mvfind

<eval token="DisplayPanel1">mvfind('form.panelstodisplay',"DisplayPanel1")</eval>

 mvfind will return null if the value is not selected, which is the same as unsetting the token

Get Updates on the Splunk Community!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...