92
Views
9
Comments
Solved
Radio button should selected one by default
Question

Hi,

I've 3 radio button with same variable/attribute and different value in form.

I'm looking for help to make the first radio button should be selected by default.

Thanks.

mvp_badge
MVP
Rank: #132
Solution

Ok. Does it happen when you select the second radio button?

Please see my oml in attachment with an example. You can test it here: https://luiscardosokinetit.outsystemscloud.com/LuisTestDemo/Radiobuttons.aspx

LuisTestDemo.oml

mvp_badge
MVP
Rank: #132

Hello Ayu,

In preparation or OnReady you should assign the value of that default radio button to the variable that you are using. Another way is to assign that value as the default of the variable.

Please see the properties below:

mvp_badge
MVP
Rank: #132

Do you have the same value for both radio buttons? 

Can you show it how did you define the value os the radio buttons please?

mvp_badge
MVP
Rank: #132
Solution

Ok. Does it happen when you select the second radio button?

Please see my oml in attachment with an example. You can test it here: https://luiscardosokinetit.outsystemscloud.com/LuisTestDemo/Radiobuttons.aspx

LuisTestDemo.oml

mvp_badge
MVP
Rank: #128

on preparation assign the value to radio button variable which u want to be selected by default.

mvp_badge
MVP
Rank: #91

Hi Ayu,

In addition to the previous solution statements you can refer this post as well: https://www.outsystems.com/forums/discussion/61600/how-to-deselect-the-radio-on-click-of-selected-radio/#Post239740


Hope this helps you!

Regards, 

Benjith Sam