# Is there to create a radio button group?

**URL:** <https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140>\
**Category:** Questions about Thunkable X\
**Created:** [October 27, 2023, 2:17pm UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140 "2023-10-27T14:17:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)\
**Post date:** [October 27, 2023, 2:17pm UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140/1 "2023-10-27T14:17:29Z")

</div>

First off when I say group, I do not mean the group that exists that allows you to change appearance enmass for buttons; I am speaking about something similar to a radio button group in an HTML form.

I have a screen with 5 buttons - 1 - 5 and then a Next button. On screen open, button Next will be disabled and then will be enabled as soon as any button 1 - 5 is selected. Once a selection has been made, the Next button is pressed and the value is passed to the next screen.

I found a partial solution [here](https://community.thunkable.com/t/how-to-figure-out-which-button-was-pressed/146235/11) which figures out which button is pressed.

But since this uses the Any Button component, it also includes the value of the Next button so in this case, it always gets set to 6. Is there any way to segregate the selection buttons from the Next button, similar to how a radio button group works in an HTML form?

[Project here](https://x.thunkable.com/projects/653af6fbc66eab7f3a6bee17/427c71ca-1f2e-4390-b487-c142fbc720b0/blocks)

Thanks

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [October 28, 2023, 10:19am UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140/2 "2023-10-28T10:19:55Z")

</div>

there is no radio button group, per se, but you can program one yourself by interrogatng the status of the radio buttons.

here’s an example of how a radio button group works. you might be able to make use of it.  
[https://x.thunkable.com/copy/970e652d47cc80b428a35a93fb657b55](https://x.thunkable.com/copy/970e652d47cc80b428a35a93fb657b55)

---

<div class="post-metadata">

**Author:** ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)\
**Post date:** [October 28, 2023, 3:07pm UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140/3 "2023-10-28T15:07:56Z")

</div>

Noted and thanks on that solution. But if I wanted to use buttons to select, is there a way to use the method I used and to pass the value of the chosen button to the next screen?

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [October 29, 2023, 10:50am UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140/4 "2023-10-29T10:50:11Z")

</div>

VARIABLES !!! set value using @manyone’s method

---

<div class="post-metadata">

**Author:** ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)\
**Post date:** [October 29, 2023, 3:53pm UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140/5 "2023-10-29T15:53:24Z")

</div>

Can you let me know where I can find this method? I tried setting the value to variable “class” but since I am using the Any Button component, even though I set it to the value when buttons 1 - 5 are pressed, as soon as you hit the Next button, which is button 6, the variable changes to 6 before moving to the next screen.

 ![2023-10-29 11 51 30](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/97404e75c72e00aa34ed484de89380266fa045f6.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 29, 2023, 6:31pm UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140/6 "2023-10-29T18:31:48Z")

</div>

> [@steve\_synopsis](#):
>
> But if I wanted to use buttons to select, is there a way to use the method I used and to pass the value of the chosen button to the next screen?

@manyone does that here:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/9/c9d6c73580650e66a93546fc3bb8d403d86481f2.png)

You can then reference `app variable last_radio` on another screen.

---

<div class="post-metadata">

**Author:** ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)\
**Post date:** [October 30, 2023, 12:55pm UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140/7 "2023-10-30T12:55:04Z")

</div>

Am still a bit unclear as this solution -

#1 - is for a list viewer and not buttons

#2 - seems to reference a function called mark\_btn\_sel but does not show the function blocks.

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [November 1, 2023, 1:32am UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140/8 "2023-11-01T01:32:20Z")

</div>

how can you ask about these things if you have not even downloaded the link i provided in my initial response? the blocks are all there.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [January 30, 2024, 1:32am UTC](https://community.thunkable.com/t/is-there-to-create-a-radio-button-group/2667140/9 "2024-01-30T01:32:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
