cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Form - Changing text color in a table cell

Former Member
0 Kudos

Hi All

Could someone please tell me how to change a color of a text in a table cell - programatically - I have to display a value in red if its value is less than a certain value.

Thanks

Points will be rewarded

Accepted Solutions (1)

Accepted Solutions (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi Liem,

Use the follwing code to change color:

if ( <Fieldname>.rawValue > 500 ) then

<Fieldname>.caption.font.fill.color.value = "200,10,10"

endif

Here <Fieldname> is assumed to be the field for which you want to change the colour. suppose the value for it is greater than 500 it will become red and for values less than 500 it will be the default colour or you set in its properties.

Hope it will be helpful.

Regards,

Vaibhav Tiwari.

Answers (0)