This topic is locked

Check Box to apply date

9/16/2008 5:40:18 AM
PHPRunner General questions
S
swanside author

Hello.
I have a check box called Printed, So If we print an Invoice we tick this box to show anybody else the invoice has been printed. We also have a Date Printed field which we set to the date we print the invoice. This is all done on the job_edit.php page.
Is it possible that once the checkbox for printed is ticked, the Date Printed field is automatically filled with the current date? Cheers
Paul.

J
Jane 9/16/2008

Hi,
use Before record updated event on the Events tab for this purpose.

Here is a sample:

if ($values["FieldName"])

$values["DateFieldName"] = Now();

S
swanside author 9/16/2008

Thanks Jane, That will give me something to start with now.
Cheers

Paul.