This topic is locked

Color Format

1/16/2007 7:07:30 PM
PHPRunner General questions
C
carleydc author

Is there an easy way to make negative numbers show up as a differant color on the list page?
Thanks

D

J
Jane 1/17/2007

Hi,
you can do it using Custom view format on the LIST page.

Proceed to the Visual Editor tab, double click on your field, select Custom on the "View as" settings dialog and add your code.

Here is a sample:

if ($value<0) $value="<font color=red>".$value."</font>";