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!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...