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!

Thank You for Celebrating CX Day with Splunk!

Yesterday the entire team at Splunk &#43; Cisco joined the global celebration of CX Day - celebrating our ...

App Building 101 - Build Your First App!

WATCH RECORDING NOW   Tech Talk: App Dev Edition Splunk has tons of out-of-the-box functionality, and you’ve ...

Introducing support for Amazon Data Firehose in Splunk Edge Processor

We’re excited to announce a powerful update to Splunk Data Management with added support for Amazon Data ...