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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...