Dashboards & Visualizations

[CLOSED] Uncheck Radio Button

kitty_splunk
New Member

Hello,

How can I uncheck a radio button?

I have this piece of code:
-input- type="radio" token="operator"-
-label-(un)Check-/label-
-choice value="NOT">NOT-/choice-
-/input-

Once I made a search I'm unable to uncheck it unless I open the page again(not refresh it)

Is there any way to do that without adding another radio button?

Thanks!

Tags (1)
0 Karma

edsalm
Engager

Try this:

<input type="radio" token="DoSomething">
  <choice value="Yes">Do it</choice>
</input>   

and then to uncheck do this:

<unset token="DoSomething"></unset>
<unset token="form.DoSomething"></unset>

Hope this helps.

Regards!
Ed.

kitty_splunk
New Member

Seems like there is no way to uncheck a radio button since it was "made this way"

I'll try and use another type of box (checkbox) without html

Regards!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...