# How to link radio button

**URL:** <https://forum.inductiveautomation.com/t/how-to-link-radio-button/90311>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 13, 2024, 2:04pm UTC](https://forum.inductiveautomation.com/t/how-to-link-radio-button/90311 "2024-05-13T14:04:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marco\_alvarez](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@marco\_alvarez](https://forum.inductiveautomation.com/u/marco_alvarez)\
**Post date:** [May 13, 2024, 2:04pm UTC](https://forum.inductiveautomation.com/t/how-to-link-radio-button/90311/1 "2024-05-13T14:04:50Z")

</div>

Hi, I create a custom property on a perspective page. I need to have two radio buttons linked inside. This mean when the page start the custom property is going to take the default value of the radio button, when I change the position of the radio button the custom property should change value. This is an on/off radio button.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/e/ae44fd6d1977be6afdfb1c869e76604577c52773.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 13, 2024, 2:09pm UTC](https://forum.inductiveautomation.com/t/how-to-link-radio-button/90311/2 "2024-05-13T14:09:42Z")

</div>

- **Custom property** : Create a binding to whatever parameter determines the radio button selection. It should have a value 0, 1, 2, etc., depending how many buttons you have.
- **props.index** : Create a property binding on props.index and point it to your custom property. Make it bidirectional.

> [@marco\_alvarez](#):
>
> This is an on/off radio button.

No it's not.  
It's a radio button group which enables selection of one of a number of options. The options may be called "On" and "Off" but that doesn't make it an on/off button.

---

<div class="post-metadata">

**Author:** ![marco\_alvarez](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@marco\_alvarez](https://forum.inductiveautomation.com/u/marco_alvarez)\
**Post date:** [May 13, 2024, 7:20pm UTC](https://forum.inductiveautomation.com/t/how-to-link-radio-button/90311/3 "2024-05-13T19:20:16Z")

</div>

that works, Thanks

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 13, 2024, 9:06pm UTC](https://forum.inductiveautomation.com/t/how-to-link-radio-button/90311/4 "2024-05-13T21:06:55Z")

</div>

Good work! Please hit the "Solution" button on the post that answers your question. Thanks.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 13, 2024, 9:29pm UTC](https://forum.inductiveautomation.com/t/how-to-link-radio-button/90311/5 "2024-05-13T21:29:42Z")

</div>

If you want an on\off button, there are options: A toggle switch for example. Or maybe a multistate button.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 13, 2024, 10:29pm UTC](https://forum.inductiveautomation.com/t/how-to-link-radio-button/90311/6 "2024-05-13T22:29:19Z")

</div>

I think in the context it makes sense to be a radio. It's essentially off/on, but each state has a unique description

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 13, 2024, 10:48pm UTC](https://forum.inductiveautomation.com/t/how-to-link-radio-button/90311/7 "2024-05-13T22:48:27Z")

</div>

```python
              __________
Complex map = Simple map

```
