870
Views
9
Comments
Solved
Reactive Radio buttons
Question
Application Type
Reactive

Hi.

I would like to have a dynamic list of radio buttons is this possible or is there a way to implement this?

I know i can do this in tradicional web but is there a way in reactive? In reactive there is the radio group with static radio buttons, i would like to have a dynamic list of the radio buttons. 

2024-03-04 12-06-32
Flávio Monteiro
Solution

Thank you all for the answers. To close this topic i will share what I did.

I made a list of CheckBoxes dynamic to the amount of records that i have with an atributte of IsSelected that tells me what checkbox from the list is selected, and I made a logic to make only one checkbox selected.

I dont know if I explained it correctly, sorry for my bad english :)

2021-06-01 05-56-33
Komal Kumbhar
2020-05-07 18-53-00
Rui Barradas
 
MVP

Hello Flávio,

Hope you're doing well.


Please consider the solution given in these threads:
https://www.outsystems.com/forums/discussion/34347/radio-button-list/
https://www.outsystems.com/forums/discussion/66183/can-i-make-a-list-behave-like-a-radio-group/


Also there is a Forge component for this purpose that you may check:
https://www.outsystems.com/forge/component-overview/7497/dynamic-button-group-reactive


Hope that this helps you!


Kind regards,

Rui Barradas

2024-03-04 12-06-32
Flávio Monteiro

Thank you for the answers.

My application is reactive. For example i have a list that is populated by an agregate and if the list as 4 elements I want 4 radio buttons.

In reactive theres the concept of radio group with radio button inside but they are static and created in design time. I need a solution specific to radio buttons in run time. I know this exists in tradicional web but not in reactive.

 I was thinking i could use a list of checkboxes and have a logic that i can only select one of then, and change the style a little.

2021-06-01 05-56-33
Komal Kumbhar

Hi, 

Can you please check the behavior of radio button here if that is your requirement?

You can add logic for radio buttons on onchange action of radio button,

https://komal-k.outsystemscloud.com/PopupDemo/DropDowmDemo?_ts=637511596555136986 

Regards, 

Komal

2024-03-04 12-06-32
Flávio Monteiro

Thank you Komal.

If this is reactive and its a list of elements then yes this might help

2021-06-01 05-56-33
Komal Kumbhar

Yes this is reactive and list ,what are you using?

2024-03-04 12-06-32
Flávio Monteiro

Reactive but in this demo the radio group is inside the list. There will still be static radio buttons.

2018-12-10 12-16-21
Goncalo Duarte Almeida

Hi Flávio Monteiro

I think Rui Barradas already shared the component for what you want

https://www.outsystems.com/forge/component-overview/7497/dynamic-button-group-reactive

Regards

Gonçalo Almeida


2024-03-04 12-06-32
Flávio Monteiro
Solution

Thank you all for the answers. To close this topic i will share what I did.

I made a list of CheckBoxes dynamic to the amount of records that i have with an atributte of IsSelected that tells me what checkbox from the list is selected, and I made a logic to make only one checkbox selected.

I dont know if I explained it correctly, sorry for my bad english :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.