This topic is locked
[SOLVED]

 Change values depent on another values change

9/23/2010 2:06:31 AM
PHPRunner General questions
M
mumtaz author

Hi all master
I have a field with a value = 1 that affect other fields when the field was changed = 2 will change the other 2 records

1.date = current date

2.customer id = query to insert custom number
how to make the event before update. So the value of date / customer id can change when we change the status field = 2.
thx b4

A
ann 9/23/2010

Hi,
here is a sample code (Before record updated event on the Eventstab):

if ($values["StatusFieldName"]==2){

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

}



I'm not fully understand how do you want to change the 'customer id' field value.

M
mumtaz author 9/24/2010

Ok Ann
thx I've Solved this problem