159
Views
8
Comments
Read only radio button
Question

Hey all.

My question is really straight foward.

i had a form where i  have 2 radio buttons ( 1 true 1 false). Saved my information

And now i need to read only the radio buttons, is it possible?

What i have done was to put instead of 2 radiobuttons on my weblock i put 2 images inside na if. One with a Check and another with a Cross, and that does the trick for the user but that's mainly because i don't know it is possible to do it with the radio buttons.

Cheers

mvp_badge
MVP
Rank: #5

Hi Nuno, 

To disable RadioButtons, just set the Enabled property to False.

Cheers,
Eduardo Jauch

EDIT.

But personally I like the solution that "replaces" the inputs with expressions and images when the user shouldn't change them.

Rank: #5528

Thx Edu.

But does the RadioButtons hold the value inserted before?

Cheers

mvp_badge
MVP
Rank: #5

Hi, 

Yes. The Radio Button selected is defined based on the value that is defined in the variable that is associate with them :)

If the variable has a value that one of the Radio Buttons also have, this one will be selected, but disabled :)

Cheers,
Eduardo Jauch

Hi! Can I disable a radio button when selecting another radio button?

For example, If the user did not choose the closed radio button the LGU and Tenant radio button will be disabled 

Please see the image below.

Rank: #89

HI Mark,

Yes you can it,see below image-

1. on the radio button have option enable/disable propert you can set here boolean variable for it.

2.have a option on change action you can use action on for and set variable false .

3. another radio button is disabed .



Regards

Rahul Sahu

Rank: #973

Hi Mark,

Please find attached the .oml file. Hope it helps.

DependentRadioButton.oml