Expand my Community achievements bar.

SOLVED

Change the color of the font or background in a table if checkbox is checked

Avatar

Former Community Member

I am having trouble changing the color of the font for lines in a table that a checkbox is checked.  I am using formcalc, and found the "fontColor" property but can't get it to work.  I will use an if statement, and have that all wrote out I just need to know if I can use the fontColor property or what I need to reference to change the font color and what values refer to what colors (I know they are number values) or how to find out what value would apply to the color I would like.

I have tried using a click button to change a text field to the value of the color of the font on the button, so I can change the button font to the color I want and then click it to get the value of the color but I am only getting 0,0,0 so I must be doing something wrong.

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Here are some examples that may help.

Also check out this Adobe resource: http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf, which states:

In relation to the colour values, LC Designer uses the RGB colourspace (Red Green Blue). Each goes from 0 to 255. So for example:

  • 0,0,0 is black
  • 255,255,255 is white
  • 255,0,0 is red, etc.

There is some info here: http://assure.ly/eF231M.

Niall

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

Here are some examples that may help.

Also check out this Adobe resource: http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf, which states:

In relation to the colour values, LC Designer uses the RGB colourspace (Red Green Blue). Each goes from 0 to 255. So for example:

  • 0,0,0 is black
  • 255,255,255 is white
  • 255,0,0 is red, etc.

There is some info here: http://assure.ly/eF231M.

Niall