This topic is locked

Check if Field is empty

1/18/2008 5:26:25 AM
PHPRunner General questions
D
dieter author

On the ListPage I want to check, if a datefield is empty.

If it is empty then the backgroundcolor of this Cell should be red or in this field should be the text "open".
Is this possible ?
somebody has an idea?
Dieter

J
Jane 1/21/2008

Hi,
use Custom format on the View as" settings dialog on the Visual Editor tab.

Here is a sample:

if (!$value)

$value = "<table bgcolor=red width=100%><tr><td>open</td></tr></table>";

D
dieter author 1/23/2008

Hi,

use Custom format on the View as" settings dialog on the Visual Editor tab.

Here is a sample:


Thank You, Jane.
Works fine and is excactly what I needed.
Dieter