Expand my Community achievements bar.

SOLVED

Still cannot change radio caption color by script

Avatar

Level 2

Hello,

I've been trying to follow advice seen in other threads when developers wanted to inactivate radio button choices by script, and also turn the caption grey. What I'm finding is I can deactivate the choice but I just cannot turn the caption grey.

If the exclusion group is named "MyRadioChoice" and the choices are (say) "Choice1", "Choice2", "Choice3" and due to other user input Choice3 becomes inapplicable, then the wisdom is this should work:

MyRadioChoice.Choice3.access = "readOnly";

MyRadioChoice.Choice3.caption.font.fill.color = "192,192,192";

The first statement works, the choice can no longer be clicked. But the second does not work, I just can't change the caption color. THe script does not throw any errors, it just plain doesn't work. Can anybody help?

1 Accepted Solution

Avatar

Correct answer by
Level 6

Add ".value" to the end:  MyRadioChoice.Choice3.caption.font.fill.color.value = ...

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

Add ".value" to the end:  MyRadioChoice.Choice3.caption.font.fill.color.value = ...

Avatar

Level 2

You were right. That problem was driving me crazy. Thank you for the solution.