This topic is locked
[SOLVED]

 Conditional Formatting If Field Is Blank

6/25/2013 11:31:28 AM
PHPRunner General questions
A
angelcause author

I want to change the color of a field SupervisorApproval to be in redif it is empty and green when it will be filled by any data.

A
angelcause author 6/25/2013



Check this article http://xlinesoft.com/blog/2011/01/03/tutorial_conditional_formatting/



Thanks Christian, I went through the tutorial but how can I define if the field is blank for example I did this
if ($data["Profitability"]="")

$row["rowstyle"]='style="background:yellow"';

and I got nothing.

G
gudon 6/25/2013



Thanks Christian, I went through the tutorial but how can I define if the field is blank for example I did this
if ($data["Profitability"]="")

$row["rowstyle"]='style="background:yellow"';

and I got nothing.


Try
if ($data["Profitability"]=="")
Note: TWO equals symbols.

A
angelcause author 6/25/2013



Try
if ($data["Profitability"]=="")
Note: TWO equals symbols.


gudon. Thank you so much....