Dashboards & Visualizations

How to set value from table to a list of checkboxes in Splunk dashboard?

sntos05
Loves-to-Learn Everything

image.png

I have table from on it when I click on edit button I'm taking value from that row and set to the filters above.

In case of checkbox I have 2 choices, if on one of the system and Bi Report has only one is selected, it's value get set in the filters above but if both system and Report is selected the filters not get set at all.

image.png

Any help appreciated.

 

Labels (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

Not sure about dashboard studio, but a checkbox value is a multivalue field, so if you want to set more than one value to the token it, at least in XML, would need to have a multivalue result.

e.g. in XML if your two values are 1 and 2, then this

<eval token="form.check">split("1,2",",")</eval>

will set the input form token "check" to an MV field containing 1 and 2 in the XML case, will turn on both checkboxes.

 

0 Karma

glc_slash_it
Path Finder

Hey!

You need to define a drilldown with conditional tokens. 

https://docs.splunk.com/Documentation/Splunk/9.0.4/Viz/tokens#Define_tokens_for_dynamic_drilldown

 

Also check this thread:

https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-cond...

 

------------
If this was helpful, some karma would be appreciated.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...