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!

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 at Splunk .conf24 ...

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

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...