This topic is locked
[SOLVED]

 List Page Update

9/28/2010 4:18:19 PM
PHPRunner General questions
R
Ricky001 author

Hi If anyone can help with the following I would be most greatful.
I have a list page with the following fields Invoice Sent , Invoice Due and Job Completed
What I am trying to do is check to see if the InvoiceDue date is greater than the current date IE: NOW(), if so I would like the Job Completed field to display"Over Due Payment" but i don't wont this to be writen to the database, in other words just displayed on the list page i now how to change the colour of the row based on an if statment but how do i write text to the filed
Hope you can help
Regards
Ricky

A
ann 9/29/2010

Ricky,
proceed to the View as settings dialog on the Visual Editor tab of the 'Job Completed' field.

Select Custom format and add the following code here:

if ($data["InvoiceDue"]>Now()){

$value="Over Due Payment";

}
R
Ricky001 author 9/29/2010



Ricky,
proceed to the View as settings dialog on the Visual Editor tab of the 'Job Completed' field.

Select Custom format and add the following code here:

if ($data["InvoiceDue"]>Now()){

$value="Over Due Payment";

}