Expand my Community achievements bar.

SOLVED

How to color the check boxes?

Avatar

Level 8

Hello

I have couple of check boxes on my form, like....... my_check_box_monthly....... my_check_box_yearly.

I have 2 scenarios, so based on scenario, i hv to select either of the check box, as below

if scenario_1

make/display my_check_box_monthly with BLUE

else if scenario_2

make/display my_check_box_yearly. with RED

endif.

For text fields..... I know how to get i, its as below,

this.ui.oneOfChild.border.fill.color.value = "224,224,224";

Pls. let me know How to write the code for COLORING the check boxes in Java Script?

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 2

Kindly check this code for changing border color of check box

If scenario1

this.ui.checkButton.border.edge.color.value = "0,0,255";

else if scenario2

this.ui.checkButton.border.edge.color.value = "255,0,0";

Thanks,

Anitha

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Kindly check this code for changing border color of check box

If scenario1

this.ui.checkButton.border.edge.color.value = "0,0,255";

else if scenario2

this.ui.checkButton.border.edge.color.value = "255,0,0";

Thanks,

Anitha