Dashboards & Visualizations

uncheck checkbox is not working if ON bydefault in 7.1.x

AKG1_old1
Builder

Hello,

In checkbox input type when its checked by default, I am uable to deselect the value. I have seen this behavior after upgrade to 7.1.x. In earlier version(7.0.3) I was able to select/unselect the checkbox.

Not sure if some functionality is changed or I am missing something.

Code:

    <input type="checkbox" token="SAVE_TEST" searchWhenChanged="true">
      <label>ON_OFF</label>
      <choice value="ON">ON</choice>
     <default>ON</default>
 </input>

Thanks

1 Solution

vnravikumar
Champion

Hi @agoyal

Use <initialValue> instead of <default>, if use <default> while uncheck it again try to reset value to ON

<input type="checkbox" token="SAVE_TEST" searchWhenChanged="true">
      <label>ON_OFF</label>
      <choice value="ON">ON</choice>
      <initialValue>ON</initialValue>

    </input>

View solution in original post

vnravikumar
Champion

Hi @agoyal

Use <initialValue> instead of <default>, if use <default> while uncheck it again try to reset value to ON

<input type="checkbox" token="SAVE_TEST" searchWhenChanged="true">
      <label>ON_OFF</label>
      <choice value="ON">ON</choice>
      <initialValue>ON</initialValue>

    </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,  ...