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!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

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

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...