Dashboards & Visualizations

Splunk 7.1.1 checkbox checks on click of text

architkhanna
Path Finder

I have a show/hide checkbox in my dashboard on check of which the few filters are shown/hidden.
After splunk upgrade,on click of text "show/hide",the checkbox is checked but functionality doesn't happen.Hence,it creates an issue for user.
Any help to make sure on click of text the tick doesn't come and only comes when small box is checked
TIA.

0 Karma

sdchakraborty
Contributor

Hi Archit,

Looks like splunk is not stting up token value when we are clicking on the checkbox text( this feature used to work in splunk 6). To fix this you can set a token when you click checkbox text by checking the checkbox check condition. Then use that token to show/hide other filters.

  <input type="checkbox" id="checkboxFilters" token="filter_show" searchWhenChanged="false" >
      <label>Filters</label>
      <choice value="show">Show / Hide</choice>
      <change>
        <condition value="show">
          <set token="filter_show2"></set>
        </condition>
        <condition>
          <unset token="filter_show2"></unset>
        </condition>
      </change>
    </input>
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 ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...