It's all about the answers!

Ask a question

str.fontcolor in attribute customization javascript


Michael Dexter (9211110) | asked Nov 29 '17, 10:44 a.m.

Hi,


Good morning to all...

I have two attributes. 1 enumerated list yes/no and 1 message
When the user selects YES, I display message in attribute 2
I want the text of the message to be a color instead of black.

I have tried:
   var result = str.fontcolor("red");

No matter where or how I put this it breaks the scripts.  In testing I go to select YES and no message appears anymore.

Is this supported and if YES, how is the right way to do it?

Thank you,
Mike

One answer



permanent link
Donald Nong (14.3k213) | answered Dec 06 '17, 11:21 p.m.

I don' think it works that way. To change any CSS styles, you will change it for all the attributes of the same type, not just the one attribute that you think you have selected. For more details, see:
https://jazz.net/wiki/bin/view/Main/WebUITheming

Your answer


Register or to post your answer.