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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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