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!

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 ...

Index This | When is October more than just the tenth month?

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

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...