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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...