# Perspective Radio Button

**URL:** <https://forum.inductiveautomation.com/t/perspective-radio-button/100207>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 25, 2024, 5:47pm UTC](https://forum.inductiveautomation.com/t/perspective-radio-button/100207 "2024-12-25T17:47:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkhoshroo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pkhoshroo/32/26801_2.png) [@pkhoshroo](https://forum.inductiveautomation.com/u/pkhoshroo)\
**Post date:** [December 25, 2024, 5:47pm UTC](https://forum.inductiveautomation.com/t/perspective-radio-button/100207/1 "2024-12-25T17:47:25Z")

</div>

Hello all

I’m trying to use radio buttons in Perspective, but I’m running into some challenges.

Here’s my setup: I have 8 string tags in my PLC. Each tag may or may not contain a string. The goal is to display a radio button for each tag that contains a string. For example, if only 3 out of the 8 tags have strings, there should be 3 radio buttons visible on the screen.

Initially, I tried using a radio button group, but I realized that individual options in the group don’t have display or visibility controls. Because of this limitation, I decided to create 8 separate radio buttons instead. This way, I can control the visibility of each button based on whether its corresponding tag contains a string or is Null.

So far, I’ve managed to toggle the visibility of the individual radio buttons successfully. However, I’m now stuck on how to ensure that when one button is selected, the others are automatically deselected since they are no longer part of a single group. Tried to toggle selected option or use the path but I have not come into a desired solution yet.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/9/09cd1471267c4d2e09017317cb2d676c4f6afab4.png)

---

<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:** [December 25, 2024, 7:54pm UTC](https://forum.inductiveautomation.com/t/perspective-radio-button/100207/2 "2024-12-25T19:54:53Z")

</div>

I don't think that's going to work. Consider scripting the generation of `props.radios` to only include the non-empty strings. Or an expression binding using `tags()` and `where()` from my Integration Toolkit.
