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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...