# Radio Button selection to an Integer Value

**URL:** <https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [June 11, 2026, 7:13pm UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952 "2026-06-11T19:13:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![harrisae](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@harrisae](https://forum.inductiveautomation.com/u/harrisae)\
**Post date:** [June 11, 2026, 7:13pm UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/1 "2026-06-11T19:13:45Z")

</div>

I'm having a difficult time getting the integer value of my radio button selection to a UDT.

I have a standard setup with 3 radio buttons. I created a custom property and set it as an integer. Then I binded that custom property to an expression as such-

```python
If({Door Faceplate.Group.Radio Button 1.selected}, 1,
If({Door Faceplate.Group.Radio Button 2.selected}, 2,
If({Door Faceplate.Group.Radio Button 3.selected}, 3,
0)))

```

I see the custom property value update. However, how do I link/bind this to another tag(ie UDT)?

---

<div class="post-metadata">

**Author:** ![tgarrison](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tgarrison/32/80965_2.png) [@tgarrison](https://forum.inductiveautomation.com/u/tgarrison)\
**Post date:** [June 11, 2026, 8:08pm UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/2 "2026-06-11T20:08:35Z")

</div>

You need to bind the custom prop to the UDT tag, (bidirectional).

Then add an "On Change" event to your radio button .select property that does what you show above, but writing that value to the custom property.

Assuming you want the tag to also set the Radio Button initially...

---

<div class="post-metadata">

**Author:** ![harrisae](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@harrisae](https://forum.inductiveautomation.com/u/harrisae)\
**Post date:** [June 11, 2026, 8:58pm UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/3 "2026-06-11T20:58:52Z")

</div>

Thanks for the response! That solved that portion of my problem.

Now I also do want the tag to set the Radio Button. I notice if I reboot the Vision app, I can see the value saved from memory (it will eventually be set to a PLC), however, the Radio Buttons are all cleared.

---

<div class="post-metadata">

**Author:** ![harrisae](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@harrisae](https://forum.inductiveautomation.com/u/harrisae)\
**Post date:** [June 11, 2026, 9:31pm UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/4 "2026-06-11T21:31:05Z")

</div>

Nevermind, I was able to figure out my second question, regarding the tag setting my Radio Button. For each button itself, I set an expression bind to the Data/Selected property, to evaluate if the custom property equals a certain value.

Thanks again!

---

<div class="post-metadata">

**Author:** ![tgarrison](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tgarrison/32/80965_2.png) [@tgarrison](https://forum.inductiveautomation.com/u/tgarrison)\
**Post date:** [June 12, 2026, 11:20am UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/5 "2026-06-12T11:20:19Z")

</div>

The only fun thing you may end up having to deal with is the round-robin effect when you start actually using a PLC tag. There's a slight race condition between reads and writes, so when you change the selection, you may see it change, then quickly change back (due to a fresh read) and then change back to what you selected (after the write takes place, and the value is then re-read from the plc)

---

<div class="post-metadata">

**Author:** ![harrisae](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@harrisae](https://forum.inductiveautomation.com/u/harrisae)\
**Post date:** [June 15, 2026, 3:21pm UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/6 "2026-06-15T15:21:42Z")

</div>

Now with the binding and scripting added, I notice that when I do select a radio button, I momentarily will see dashed lines surrounding the item. If the radio buttons are grouped together, I will see the highlighting around the group. If the radio buttons are not grouped, I see the highlighting only on the radio button I select. For the radio buttons that do not have binding/scripting on it yet, I do not see the dashed lines. Any idea why this is the case?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 15, 2026, 3:24pm UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/7 "2026-06-15T15:24:07Z")

</div>

1. Radio buttons are expected to be grouped.

2. The dashed lines are Ignition's styling for "write in progress" through a binding.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [June 16, 2026, 6:10am UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/8 "2026-06-16T06:10:29Z")

</div>

> [@harrisae](#):
>
> I momentarily will see dashed lines surrounding the item

If you don't want to see the dashed lines, simply **select** the Overlay Opt-Out option at the bottom of the binding editor:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/2/920e393abdc6ced0029f88f4070e7a6f02dcde0f.png)

---

<div class="post-metadata">

**Author:** ![harrisae](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@harrisae](https://forum.inductiveautomation.com/u/harrisae)\
**Post date:** [June 16, 2026, 2:12pm UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/9 "2026-06-16T14:12:25Z")

</div>

Thanks Justin!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 16, 2026, 2:15pm UTC](https://forum.inductiveautomation.com/t/radio-button-selection-to-an-integer-value/115952/10 "2026-06-16T14:15:03Z")

</div>

Be aware that if you opt out of the overlay to get rid of the styling for writes, you are also getting rid of the error overlays for actual problems with the tag quality. I strongly encourage users to **not** opt out of overlays unless substitute styling will be used.
