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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...