1285
Views
4
Comments
By default both radio buttons should be unchecked
Question

Hi,

I Have two radio buttons and I want none of them to be selected by default.

The radio buttons are linked to the questions and I want each question to be unanswered by default.

Validation on save to check all questions answered


Plz help asap.

Thanks

Ankita

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi Ankita,

If you want radio button to be not selected by default then you need to assign false value to the radio button variable.


Thanks,

Rajat Agrawal

2019-05-22 11-30-09
Marcelo Ferreira

Ankita,

For that to happen the variable assign to those radio button can't be a Boolean. It needs to be an integer. And let's say 0 is none selected. 1 is one of the radio and 2 the other.

One radio would be like this:

And the other with a 2 on value.

So when var1 is 0 none will be selected.

Regards,

Marcelo

UserImage.jpg
Ankita Jaggi

Marcelo Ferreira wrote:

Ankita,

For that to happen the variable assign to those radio button can't be a Boolean. It needs to be an integer. And let's say 0 is none selected. 1 is one of the radio and 2 the other.

One radio would be like this:

And the other with a 2 on value.

So when var1 is 0 none will be selected.

Regards,

Marcelo


Your Logic was correct and now I want to compare those ans with the predefined set of answer.

So how can i do it?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Ankita,

Like Eduardo already told you in your other topic, we're not here to teach you how to program. This is an OutSystems forum, and the questions must be OutSystems related. Your question is, again, overly broad and can't be answered without you providing much more detail on what you already have done. What is the data model of your "predefined set of answer[s]"? How do you plan on storing the answers on the Screen? Etc.

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