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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...