# No selected option on Radio button

**URL:** <https://forum.inductiveautomation.com/t/no-selected-option-on-radio-button/12044>\
**Category:** Ignition\
**Created:** [August 17, 2016, 5:17am UTC](https://forum.inductiveautomation.com/t/no-selected-option-on-radio-button/12044 "2016-08-17T05:17:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella\_ramos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ella_ramos/32/3455_2.png) [@ella\_ramos](https://forum.inductiveautomation.com/u/ella_ramos)\
**Post date:** [August 17, 2016, 5:17am UTC](https://forum.inductiveautomation.com/t/no-selected-option-on-radio-button/12044/1 "2016-08-17T05:17:20Z")

</div>

Hi everyone,

I’m just curious if its possible to have no selection on the radio buttons when I open a window?  
Like the default would be no selection on the radio buttons.

Thank you.

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [August 17, 2016, 7:26am UTC](https://forum.inductiveautomation.com/t/no-selected-option-on-radio-button/12044/2 "2016-08-17T07:26:31Z")

</div>

Ella

What I would do is to have an additional radio button that is not visible.

A script on the window: internalFrameOpened event

`value = 1
system.gui.getParentWindow(event).getComponentForPath('Root Container.Radio Button').selected = value`

That should do what you want

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [August 17, 2016, 3:20pm UTC](https://forum.inductiveautomation.com/t/no-selected-option-on-radio-button/12044/3 "2016-08-17T15:20:28Z")

</div>

[code]from javax.swing import ButtonGroup

rb = event.source.parent.getComponent(‘Radio Button’)

bg = rb.getModel().getGroup()  
bg.clearSelection()[/code]

or from visionWindowOpened

[code]from javax.swing import ButtonGroup

rb1 = system.gui.getParentWindow(event).getComponentForPath(‘Root Container.Radio Button’)  
bg = rb1.getModel().getGroup()  
bg.clearSelection()[/code]
