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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...