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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...