Radio Button - Forum

Forum Navigation
You need to log in to create posts and topics.

Radio Button

Hi guys, if i click on a radio button it is selected, but when i click it again it must unselect it

Please help

@impactband4u

if i click on a radio button it is selected, but when i click it again it must unselect it

Is that not the behavior of a CheckBox ?

Radio Buttons usually roam in packs (of 2 or more); when you click on the desired option, and the previously selected option is automatically unselected.

How many radio buttons do you have in the group ?

YASIN has reacted to this post.
YASIN

Hi Gaev... When i add a radio button in my project and i click on if for the first time, it is selected, but now i want to unselect the button. But when i click on it again it does nothing, and i want it to be unselected. I've got many radio buttons on my page

@impactband4u

On this Help file page ... https://winhelp.visualneo.com/RadioButtonTool.html ... you will see how Radio Buttons are grouped.

This particular information ...

Similarly, you can reset a Radio Button group so that none of the buttons are selected by clearing the group’s variable like this:
SetVar "[RadioGroup1]" ""

... might help you ... in the click event, you could check the value of [RadioGroup1] ... and if it is not null, make it so.

Thank you Gaev

For some reason I don't understand the radio button but manage to get the checkbox working.

Thank You

@impactband4u

For some reason I don't understand the radio button

If you can upload a stand alone pub file ... with nothing but your Radio Buttons ... and any script associated with click events ... I can review it for you.

but manage to get the checkbox working.

That is good news.