Expand my Community achievements bar.

SOLVED

Checkbox required

Avatar

Level 7

HI everyone,

I have two checkboxes and one of them is required before submit the form

Any script I can apply?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hope ur looking for radio buttons. Please find the attached sample for the same.

Raghu.

View solution in original post

4 Replies

Avatar

Level 6

Please check the attached sample.

Use the following script which ever events required, also u can make those colo changes as functions and call when required.

if(CheckBox2.rawValue != '1'){
*urtext*.font.fill.color.value = "255,0,0";
}
else{
*urtext*.font.fill.color.value = "0,0,0";
}

Raghu.

Avatar

Level 7

I am sorry, probably I was not clear...

Here are my checkboxes CB1=Yes    CB2=No

User can check any of the two checkboxes (Yes or No)!

Thanks

Avatar

Correct answer by
Level 6

Hope ur looking for radio buttons. Please find the attached sample for the same.

Raghu.