Expand my Community achievements bar.

SOLVED

radio buttons as check boxes

Avatar

Former Community Member

I have two sets of radio buttons.

Each set has two radio buttons representing Yes and No.

If the first set equal no, then you should not be able to check the second set. I can not seem to get my logic to work.

secondset::click

If firstset = "No"

{

    this.rawValue = null;

}

Please help.

1 Accepted Solution

Avatar

Correct answer by
Level 1

Hi,

For radio button exclusion groups use:

secondRB.rawValue = ""; 

Good luck,

Niall

View solution in original post

4 Replies

Avatar

Level 10

Hi,

I would put the following in the click event of the first radio button exclusion group:

if (this.rawValue === "No") {

     secondRB.access = "readOnly";

}

else {

     secondRB.access = "open";

}

You will need to check the reference to the second radio button exclusion group.

Hope that helps,

Niall

Avatar

Former Community Member

That worked great, but what if they select one of the secondRB group? It leaves a check mark there, but you can not un-check it. Is there an attribute called un-checked? I tried:

secondRB.rawValue = null;

But that had no effect.

Avatar

Correct answer by
Level 1

Hi,

For radio button exclusion groups use:

secondRB.rawValue = ""; 

Good luck,

Niall

Avatar

Former Community Member

Your a lifesaver.  I also included the:

secondRB.access = "readOnly";

to the docready to give it a cleaner look.