This topic is locked
[SOLVED]

 if field is empty then change color

5/12/2010 6:10:33 AM
PHPRunner General questions
D
danaci author

hi,

is it possible, if field is empty then change color field or row on listing?

regards

A
ann 5/12/2010

Hi,
to change color of the field use After record processed event on the Events tab.

Here is a sample code:

if ($data["FieldName"]==0) {$record["FieldName_style"]='style="background:red"';}



For more information:

http://www.asprunner.com/forums/topic/6413-how-to-change-row-background-color-programmatically/

D
danaci author 5/12/2010

It works great, Thanks Ann.

best regards.